{"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: teabuff/machine-bootstrap", "shortDescription": {"text": "Foundry mined assumption checks: teabuff/machine-bootstrap"}, "fullDescription": {"text": "Comment chain pattern product: assumption_checks\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#8\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: teabuff/machine-bootstrap#8\nRepo: teabuff/machine-bootstrap\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 2\nLinked CI commit count: 1\nLinked CI labels: {'ci_pending_or_incomplete': 1}\nChanged file count: 2\nLabels: {'deployment_env_gap': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 2}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-0f1825faf7257ece\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"deployment_env_gap\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/teabu"}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "medium", "confidence": 0.62, "cwe": "", "owasp": ""}}, {"id": "foundry_test_ci_gap", "name": "Foundry mined test ci gap after feedback: teabuff/machine-bootstrap", "shortDescription": {"text": "Foundry mined test ci gap after feedback: teabuff/machine-bootstrap"}, "fullDescription": {"text": "Graph query export: Feedback exposes missing tests or CI\nQuery id: test_ci_gap_after_feedback\nQuery type: motif_query\nIntent: Hard negatives for feedback/fix chains without adequate guardrails.\nMotif: test_ci_gap_after_feedback\nTraining usage: hard_negative\nGraph gold label: supported_by_high_confidence_link\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#8\nEvidence:\nGraph motif: Feedback or fix context exposes missing test/CI guardrails\nMotif id: test_ci_gap_after_feedback\nPolarity: bad\nTraining usage: hard_negative\nSeverity: high\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#8\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: teabuff/machine-bootstrap#8\nRepo: teabuff/machine-bootstrap\nIssue/PR number: 8\nGraph consistency label: supported_by_high_confidence_link\nNodes: 14\nEdges: 20\nNode types: {'link_quality': 3, 'pr_file': 2, 'commit': 2, 'thread': 1, 'repo': 1, 'comment': 1, 'com"}, "properties": {"scanner": "foundry_dataset", "category": "testing", "severity": "high", "confidence": 0.78, "cwe": "", "owasp": ""}}, {"id": "foundry_bad_chain", "name": "Foundry mined bad chains: teabuff/machine-bootstrap", "shortDescription": {"text": "Foundry mined bad chains: teabuff/machine-bootstrap"}, "fullDescription": {"text": "Comment chain pattern product: bad_chains\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#7\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: teabuff/machine-bootstrap#7\nRepo: teabuff/machine-bootstrap\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 4\nLinked CI commit count: 1\nLinked CI labels: {'ci_pending_or_incomplete': 1}\nChanged file count: 13\nLabels: {'mock_placeholder': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 10, 'docs_or_claims': 1, 'api_or_backend': 2}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-299bfc3886142d86\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"mock_placeholder\",\n    \"polarity\": \"bad\",\n   "}, "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: teabuff/machine-bootstrap", "shortDescription": {"text": "Foundry mined security auth guardrail gaps: teabuff/machine-bootstrap"}, "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_high_confidence_link\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#6\nEvidence:\nGraph motif: Security/auth change without enough guardrails\nMotif id: security_auth_without_guardrails\nPolarity: bad\nTraining usage: assumption_check\nSeverity: critical\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#6\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: teabuff/machine-bootstrap#6\nRepo: teabuff/machine-bootstrap\nIssue/PR number: 6\nGraph consistency label: supported_by_high_confidence_link\nNodes: 17\nEdges: 27\nNode types: {'pr_file': 4, 'commit': 3, 'link_quality': 3, 'thread': 1, 'r"}, "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: teabuff/machine-bootstrap", "shortDescription": {"text": "Foundry mined mock as real or placeholder: teabuff/machine-bootstrap"}, "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: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#7\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: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#7\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: teabuff/machine-bootstrap#7\nRepo: teabuff/machine-bootstrap\nIssue/PR number: 7\nGraph consistency label: supported_by_high_confidence_link\nNodes: 27\nEdges: 53\nNode types: {'pr_file': 13, 'commit': 4, 'link_quality"}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "critical", "confidence": 0.82, "cwe": "", "owasp": ""}}, {"id": "scanner-aa5acaa49eb8315b", "name": "Containers defined but no K8s/orchestration manifest found", "shortDescription": {"text": "Containers defined but no K8s/orchestration manifest found"}, "fullDescription": {"text": "Repo has Dockerfiles/compose but no Kubernetes/Nomad manifests. If the target deployment is K8s, the manifests may live in a separate ops repo."}, "properties": {"scanner": "scanner-primary", "layer": "hardware", "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-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-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-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. 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}}]}}, "automationDetails": {"id": "repobility/20876"}, "properties": {"repository": "teabuff/machine-bootstrap", "repoUrl": "https://github.com/teabuff/machine-bootstrap", "branch": "main"}, "results": [{"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 312931, "scanner": "foundry_dataset", "fingerprint": "41b832b5400f9bc12aa6ba97dcb1beba4267246cc61a4b8201e3d1e660ad7a79", "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": "teabuff/machine-bootstrap#8", "human_labels": ["deployment_env_gap", "source_or_other"], "issue_number": "8", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.92, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "gold_candidate", "confidence_tier": "high_confidence", "source_chain_id": "evidence-chain-issue_chain-f81ce7d9bcfb359c", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 2, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"source_or_other": 2}, "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": 1, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#8\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: teabuff/machine-bootstrap#8\nRepo: teabuff/machine-bootstrap\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 2\nLinked CI commit count: 1\nLinked CI labels: {'ci_pending_or_incomplete': 1}\nChanged file count: 2\nLabels: {'deployment_env_gap': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 2}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-0f1825faf7257ece\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"deployment_env_gap\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/teabuff/machine-bootstrap/pull/8\",\n    \"text\": \"GitHub feedback: deployment_env_gap\\nPolarity: bad\\nKind: pull_request_body\\nRepo: teabuff/machine-bootstrap\\nAuthor: teabuff (User)\\nURL: https://github.com/teabuff/machine-bootstrap/pull/8\\nTitle: fix(config): drop ternary in bootstrap remote-state (inconsistent conditional types)\\nBody:\\nFixes a bug from #7: the parameterized `terraform_remote_state` ternary unifies two different object shapes (`{path=...}` vs the R2 s3 config) and errors the moment a real R2 config is passed (caught while migrating tyo to R2). The variable default now IS the local-state config; the conditional is gone. Standalone `config/` validates green; multi-env passes the R2 object.\\n\\n\ud83e\udd16 Generated with [Claude Code](https://claude.com/claude-code)\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-a49de42b9d913c4d\",\n    \"filename\": \"config/remote-state.tf\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 4,\n    \"deletions\": 3,\n    \"changes\": 7,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/80524af8b370940286e3b4dedbc64a0c60173ba9/config%2Fremote-state.tf\"\n  },\n  {\n    \"id\": \"github-pr-file-file-b7d4d8cf3cf0cc59\",\n    \"filename\": \"config/variables.tf\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 4,\n    \"deletions\": 2,\n    \"changes\": 6,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/80524af8b370940286e3b4dedbc64a0c60173ba9/config%2Fvariables.tf\"\n  }\n]\nLinked chain ids:\n[\"evidence-chain-comment_to_commit-a663dbf002594a9e\"]\nSource graph evidence:\nSource evidence repo graph summary\nRepo: teabuff/machine-bootstrap\nGraph label: source_artifact_without_verification_graph\nNodes: 5\nEdges: 6\nNode types: {\"cooccurrence_profile\": 1, \"github_repo_summary\": 1, \"repo\": 1, \"source_artifact\": 1, \"source_bundle\": 1}\nEdge types: {\"artifact_needs_claim_verification\": 1, \"repo_has_cooccurrence_profile\": 1, \"repo_has_github_evidence_s\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/teabuff/machine-bootstrap", "source_id": "comment-chain-pattern-assumption_checks-80bbbce9b7f0374b", "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": "teabuff/machine-bootstrap", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "gold_candidate"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 312930, "scanner": "foundry_dataset", "fingerprint": "02884e6db451a3a95ad68cda3ce9225ed84e28914739903abf71a162db9de970", "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": "teabuff/machine-bootstrap#6", "human_labels": ["security_auth_secret", "source_or_other"], "issue_number": "6", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.92, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "gold_candidate", "confidence_tier": "high_confidence", "source_chain_id": "evidence-chain-issue_chain-18e8dfedd6fe1775", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 4, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"source_or_other": 4}, "linked_commit_count": 3, "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": 1, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#6\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: teabuff/machine-bootstrap#6\nRepo: teabuff/machine-bootstrap\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 3\nLinked CI commit count: 1\nLinked CI labels: {'ci_pending_or_incomplete': 1}\nChanged file count: 4\nLabels: {'security_auth_secret': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 4}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-7b80b3dd963ae18c\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/teabuff/machine-bootstrap/pull/6\",\n    \"text\": \"GitHub feedback: security_auth_secret\\nPolarity: bad\\nKind: pull_request_body\\nRepo: teabuff/machine-bootstrap\\nAuthor: teabuff (User)\\nURL: https://github.com/teabuff/machine-bootstrap/pull/6\\nTitle: fix: enable+route Integration API, tolerate re-activated license, drop idp variant\\nBody:\\nThree fixes found and **live-validated** while applying the declarative SSO plane (`config/`) end-to-end against a real deployment. Without these, `config/ apply` cannot work.\\n\\n## 1. Integration API was unreachable (the big one)\\n`config/`'s `pangolin` provider talks to the Bearer **`/v1` Integration API**, but the deploy neither **enabled** nor **routed** it:\\n- `config.yml` had no `flags.enable_integration_api` \u2192 the integration server (port 3003) never started.\\n- Traefik routed only `/api/v1` (session API) + the UI, so `/v1/...` fell through to the Next.js catch-all \u2192 **404**.\\n\\nFix: `flags.enable_integration_api: true` + a Traefik `integration-router` (`Host(dashboard) && PathPrefix(/v1)` \u2192 `pangolin:3003`, explicit `priority: 100` so it beats the `!PathPrefix(/api/v1)` catch-all). Exposed publicly, gated by the Bearer key.\\n\\n## 2. License activation bricked provisioning after a DB reset\\nThe license ser\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-df77b8c55625a517\",\n    \"filename\": \"config/sso.tf\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 4,\n    \"deletions\": 1,\n    \"changes\": 5,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/dab99588d686a493096b09349e984e215f22995a/config%2Fsso.tf\"\n  },\n  {\n    \"id\": \"github-pr-file-file-73a3d2d23c99f163\",\n    \"filename\": \"infra/files/config/config.yml.tftpl\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 4,\n    \"deletions\": 0,\n    \"changes\": 4,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/dab99588d686a493096b09349e984e215f22995a/infra%2Ffile\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/teabuff/machine-bootstrap", "source_id": "comment-chain-pattern-assumption_checks-a77ba2683eba894a", "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": "teabuff/machine-bootstrap", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "gold_candidate"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 312929, "scanner": "foundry_dataset", "fingerprint": "b359a413963c5b78cc9094565719fcc46bdab5424b619bb4ab26eade3c4ae949", "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": "teabuff/machine-bootstrap#5", "human_labels": ["docs_or_claims", "security_auth_secret", "source_or_other"], "issue_number": "5", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.92, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "gold_candidate", "confidence_tier": "high_confidence", "source_chain_id": "evidence-chain-issue_chain-2ef6fe0a990e3745", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 14, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"docs_or_claims": 1, "source_or_other": 13}, "linked_commit_count": 3, "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": 1, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#5\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: teabuff/machine-bootstrap#5\nRepo: teabuff/machine-bootstrap\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 3\nLinked CI commit count: 1\nLinked CI labels: {'ci_pending_or_incomplete': 1}\nChanged file count: 14\nLabels: {'security_auth_secret': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 13, 'docs_or_claims': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-d7ecf46f850d1385\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/teabuff/machine-bootstrap/pull/5\",\n    \"text\": \"GitHub feedback: security_auth_secret\\nPolarity: bad\\nKind: pull_request_body\\nRepo: teabuff/machine-bootstrap\\nAuthor: teabuff (User)\\nURL: https://github.com/teabuff/machine-bootstrap/pull/5\\nTitle: Phase 2: declarative SSO core (config/ root)\\nBody:\\n## Summary\\n\\nReplace the imperative `provision-sso.sh` SSO wiring with a declarative `config/` OpenTofu root using the native `stackopshq/pangolin` (v1.4.0) and `trozz/pocketid` (v2.2.0) providers. `config/` is a **separate state** from `infra/` (the bootstrap) \u2014 it reads the bootstrap's outputs via `terraform_remote_state` (local backend for now; Plan 3 \u2192 R2) and authenticates with the Integration API key minted in Phase 1.\\n\\n- **`config/` root:** `pocketid_client.pangolin`, `pangolin_org.main`, `pangolin_role.custom` (`for_each`), `pangolin_idp.pocket_id` + `pangolin_idp_org.pocket_id` (role/org mapping).\\n- **Cycle-break:** the Pocket ID client registers a scoped path-wildcard callback `https://<dashboard>/auth/idp/*/oidc/callback`, so it does **not** depend on the server-assigned IdP id \u2014 the OIDC-client\u2194IdP dependency cycle disappears (no `restapi`, no `ignore_changes`). Source-verified that the provider validator allows `*` and Pocket ID\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-ab5003610456976b\",\n    \"filename\": \"config/.gitignore\",\n    \"label\": \"source_or_other\",\n    \"status\": \"added\",\n    \"additions\": 6,\n    \"deletions\": 0,\n    \"changes\": 6,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/fbdcb9a693797f16c162859636e6e85428a52036/config%2F.gitignore\"\n  },\n  {\n    \"id\": \"github-pr-file-file-2eaad37515b98343\",\n    \"filename\": \"config/README.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"added\",\n    \"additions\": 37,\n    \"deletions\": 0,\n    \"changes\": 37,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/fbdcb9a693797f16c162859636e6e85428a52036/config%2FR\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/teabuff/machine-bootstrap", "source_id": "comment-chain-pattern-assumption_checks-2ed76ebacf987d72", "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": "teabuff/machine-bootstrap", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "gold_candidate"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 312928, "scanner": "foundry_dataset", "fingerprint": "485dcd1919cf10c53f3d2dd157cbb3d6ab1dfbd52ef5f53d448a61c66192e021", "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": "teabuff/machine-bootstrap#3", "human_labels": ["docs_or_claims", "security_auth_secret", "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.82, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "gold_candidate", "confidence_tier": "high_confidence", "source_chain_id": "evidence-chain-issue_chain-8d9679a6b8569015", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 30, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"test_or_ci": 1, "docs_or_claims": 4, "source_or_other": 25}, "linked_commit_count": 3, "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: assumption_checks\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#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: teabuff/machine-bootstrap#3\nRepo: teabuff/machine-bootstrap\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': 25, 'docs_or_claims': 4, 'test_or_ci': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-6c91332e40ff2565\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/teabuff/machine-bootstrap/pull/3\",\n    \"text\": \"GitHub feedback: security_auth_secret\\nPolarity: bad\\nKind: pull_request_body\\nRepo: teabuff/machine-bootstrap\\nAuthor: teabuff (User)\\nURL: https://github.com/teabuff/machine-bootstrap/pull/3\\nTitle: Pangolin + Pocket ID stack: headless SSO, identity-aware SSH, RBAC\\nBody:\\n## What\\n\\nSelf-hosted **Pangolin** (EE reverse proxy) + **Pocket ID** (OIDC IdP) on a bring-your-own server, brought up and configured **headlessly** (no UI clicks), plus identity-aware SSH with per-role RBAC.\\n\\n## Layers\\n- **`infra/`** (OpenTofu/Terraform) \u2014 Cloudflare DNS (apex + `*.wildcard`), generated secrets, renders + ships the compose stack (`pangolin`/`gerbil`/`traefik`/`pocket-id`), deploys over SSH (as root), activates the EE license headlessly.\\n- **`provision-sso.sh` + `lib/sso.sh`** \u2014 wires Pangolin \u21c4 Pocket ID SSO entirely over each product's HTTP API: `STATIC_API_KEY` hidden admin \u2192 deterministic OIDC client \u2192 session-cookie/CSRF IdP \u2192 two-pass redirect callback. Idempotent.\\n\\n## Highlights\\n- **Declarative role mapping** \u2014 compile the IdP role mapping from the identity manifest's `group <name> <Role>` annotations (the declarative form of Pangolin's UI mapping builder). One source of truth; multi-role via JM\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-9ed04b5c814da5bc\",\n    \"filename\": \".gitignore\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 14,\n    \"deletions\": 0,\n    \"changes\": 14,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/307f8474b378c67c7988f85ee7afb4189b5c6aaf/.gitignore\"\n  },\n  {\n    \"id\": \"github-pr-file-file-d8509c441a12904c\",\n    \"filename\": \"README.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"modified\",\n    \"additions\": 82,\n    \"deletions\": 0,\n    \"changes\": 82,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/307f8474b378c67c7988f85ee7afb4189b5c6aaf/README.md\"\n  },\n  {\n    \"id\": \"gi\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/teabuff/machine-bootstrap", "source_id": "comment-chain-pattern-assumption_checks-c83277dd014d187c", "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": "teabuff/machine-bootstrap", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "gold_candidate"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 312927, "scanner": "foundry_dataset", "fingerprint": "1c81a5da4524ba3861f6b292f0a2757d9b61d3316f6783a399fe27d0f4154479", "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": "teabuff/machine-bootstrap#2", "human_labels": ["docs_or_claims", "security_auth_secret", "source_or_other"], "issue_number": "2", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.92, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "gold_candidate", "confidence_tier": "high_confidence", "source_chain_id": "evidence-chain-issue_chain-9a2afd803629f4ca", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 13, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"docs_or_claims": 1, "source_or_other": 12}, "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: assumption_checks\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#2\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: teabuff/machine-bootstrap#2\nRepo: teabuff/machine-bootstrap\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: 13\nLabels: {'security_auth_secret': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 12, 'docs_or_claims': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-700be3eeb8020f1d\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/teabuff/machine-bootstrap/pull/2\",\n    \"text\": \"GitHub feedback: security_auth_secret\\nPolarity: bad\\nKind: pull_request_body\\nRepo: teabuff/machine-bootstrap\\nAuthor: teabuff (User)\\nURL: https://github.com/teabuff/machine-bootstrap/pull/2\\nTitle: Add OpenTofu/Terraform setup for Pangolin + Pocket ID\\nBody:\\nBring-your-own-server IaC under `infra/`: it converges an existing SSH-reachable box (Bandwagon, V.PS, Hetzner, anything) rather than creating one, so it is provider-agnostic.\\n\\n## What it does\\n- Cloudflare apex + `*.<base_domain>` wildcard records (DNS-only), so every subdomain routes through Pangolin with no per-resource DNS work.\\n- Renders the Pangolin (pangolin+gerbil+traefik) + Pocket ID compose stack and configs from variables, pushes them over SSH, and runs an idempotent deploy (install Docker if missing, `docker compose up -d`).\\n- `server.secret` and Pocket ID `ENCRYPTION_KEY` generated via the random provider; real domains/IPs/tokens and state stay local + gitignored.\\n- Templates vendored from fosrl/pangolin (badger v1.4.1, traefik v3.6), no-geo; README documents regenerating with CrowdSec/MaxMind later.\\n\\nAlso ignores `docs/superpowers/` to keep design notes private.\\n\\n\ud83e\udd16 Generated with [Claude Code](https://claude.com/claude\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-28574d3bf7cdce18\",\n    \"filename\": \".gitignore\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 1,\n    \"deletions\": 0,\n    \"changes\": 1,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/ab88e59d2c0b5bc684c481c2550d93e28a413e4d/.gitignore\"\n  },\n  {\n    \"id\": \"github-pr-file-file-9ab61e47ef0fa452\",\n    \"filename\": \"infra/.gitignore\",\n    \"label\": \"source_or_other\",\n    \"status\": \"added\",\n    \"additions\": 8,\n    \"deletions\": 0,\n    \"changes\": 8,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/ab88e59d2c0b5bc684c481c2550d93e28a413e4d/infra%2F.gitignore\"\n  },\n  {\n    \"id\": \"github-p\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/teabuff/machine-bootstrap", "source_id": "comment-chain-pattern-assumption_checks-263db5ee79d13a3e", "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": "teabuff/machine-bootstrap", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "gold_candidate"}}}, {"ruleId": "foundry_test_ci_gap", "level": "error", "message": {"text": "Foundry mined test ci gap after feedback: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 341215, "scanner": "foundry_dataset", "fingerprint": "904f765bba53ca417a7b05ba295c86ba2eb4d95992ca44e1196a0cd4a86f3630", "category": "testing", "severity": "high", "confidence": 0.78, "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": "Feedback exposes missing tests or CI", "intent": "Hard negatives for feedback/fix chains without adequate guardrails.", "labels": {"bug_fix": 2, "source_or_other": 2, "deployment_env_gap": 1, "ci_pending_or_incomplete": 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": "test_ci_gap_after_feedback", "outcomes": {"claimed_resolved_unverified": 6}, "polarity": "bad", "query_id": "test_ci_gap_after_feedback", "severity": "high", "ci_labels": {"ci_pending_or_incomplete": 2}, "synthetic": false, "edge_count": 20, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 2, "comment_chain_has_ci": 1, "chain_has_link_quality": 3, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 2, "thread_has_comment_chain": 1, "comment_chain_links_commit": 2, "comment_chain_touches_file": 2, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 14, "node_types": {"repo": 1, "commit": 2, "thread": 1, "comment": 1, "pr_file": 2, "ci_summary": 1, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "teabuff/machine-bootstrap#8", "issue_number": "8", "quality_tiers": {"high_confidence": 3}, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "hard_negative", "source_motif_id": "graph-pattern-motif-thread-e0c472b6567b033f", "graph_gold_label": "supported_by_high_confidence_link", "changed_file_labels": {"source_or_other": 8}}, "text": "Graph query export: Feedback exposes missing tests or CI\nQuery id: test_ci_gap_after_feedback\nQuery type: motif_query\nIntent: Hard negatives for feedback/fix chains without adequate guardrails.\nMotif: test_ci_gap_after_feedback\nTraining usage: hard_negative\nGraph gold label: supported_by_high_confidence_link\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#8\nEvidence:\nGraph motif: Feedback or fix context exposes missing test/CI guardrails\nMotif id: test_ci_gap_after_feedback\nPolarity: bad\nTraining usage: hard_negative\nSeverity: high\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#8\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: teabuff/machine-bootstrap#8\nRepo: teabuff/machine-bootstrap\nIssue/PR number: 8\nGraph consistency label: supported_by_high_confidence_link\nNodes: 14\nEdges: 20\nNode types: {'link_quality': 3, 'pr_file': 2, 'commit': 2, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'ci_summary': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'chain_has_link_quality': 3, 'thread_touches_file': 2, 'comment_chain_links_commit': 2, 'comment_chain_touches_file': 2, 'issue_chain_touches_file': 2, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'comment_chain_has_ci': 1, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'claimed_resolved_unverified': 3, 'source_or_other': 2, 'bug_fix': 2, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'deployment_env_gap': 1, 'human_reported_issue_then_fix_attempt': 1, 'ci_pending_or_incomplete': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'high_confidence': 3}\nCI labels: {'ci_pending_or_incomplete': 2}\nCurriculum targets:\n- Turn human feedback into regression tests and CI gates.\n- Penalize fixes that do not add or exercise verification for affected workflows.\nAssumption checks:\n- Did the fix add tests for the exact complaint?\n- Does CI run those tests, or is verification only implied?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/teabuff/machine-bootstrap", "source_id": "graph-query-motif_query-4d1a7446a57f0c63", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/test_ci_gap_after_feedback/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "teabuff/machine-bootstrap", "source_dataset": "graph_queries/test_ci_gap_after_feedback", "training_usage": "hard_negative"}}}, {"ruleId": "foundry_test_ci_gap", "level": "error", "message": {"text": "Foundry mined test ci gap after feedback: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 341214, "scanner": "foundry_dataset", "fingerprint": "fabcbec6a090429cb2bca0527ed4a8d87fdb18b3889cf6f29c5894fdd4a6f3f7", "category": "testing", "severity": "high", "confidence": 0.78, "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": "Feedback exposes missing tests or CI", "intent": "Hard negatives for feedback/fix chains without adequate guardrails.", "labels": {"bug_fix": 3, "source_or_other": 4, "security_auth_secret": 1, "ci_pending_or_incomplete": 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": "test_ci_gap_after_feedback", "outcomes": {"claimed_resolved_unverified": 6}, "polarity": "bad", "query_id": "test_ci_gap_after_feedback", "severity": "high", "ci_labels": {"ci_pending_or_incomplete": 2}, "synthetic": false, "edge_count": 27, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 4, "comment_chain_has_ci": 1, "chain_has_link_quality": 3, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 4, "thread_has_comment_chain": 1, "comment_chain_links_commit": 3, "comment_chain_touches_file": 4, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 17, "node_types": {"repo": 1, "commit": 3, "thread": 1, "comment": 1, "pr_file": 4, "ci_summary": 1, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "teabuff/machine-bootstrap#6", "issue_number": "6", "quality_tiers": {"high_confidence": 3}, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "hard_negative", "source_motif_id": "graph-pattern-motif-thread-b2fe798186b706c0", "graph_gold_label": "supported_by_high_confidence_link", "changed_file_labels": {"source_or_other": 16}}, "text": "Graph query export: Feedback exposes missing tests or CI\nQuery id: test_ci_gap_after_feedback\nQuery type: motif_query\nIntent: Hard negatives for feedback/fix chains without adequate guardrails.\nMotif: test_ci_gap_after_feedback\nTraining usage: hard_negative\nGraph gold label: supported_by_high_confidence_link\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#6\nEvidence:\nGraph motif: Feedback or fix context exposes missing test/CI guardrails\nMotif id: test_ci_gap_after_feedback\nPolarity: bad\nTraining usage: hard_negative\nSeverity: high\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#6\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: teabuff/machine-bootstrap#6\nRepo: teabuff/machine-bootstrap\nIssue/PR number: 6\nGraph consistency label: supported_by_high_confidence_link\nNodes: 17\nEdges: 27\nNode types: {'pr_file': 4, 'commit': 3, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'ci_summary': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 4, 'comment_chain_touches_file': 4, 'issue_chain_touches_file': 4, '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, 'comment_chain_has_ci': 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': 4, 'bug_fix': 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, 'ci_pending_or_incomplete': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'high_confidence': 3}\nCI labels: {'ci_pending_or_incomplete': 2}\nCurriculum targets:\n- Turn human feedback into regression tests and CI gates.\n- Penalize fixes that do not add or exercise verification for affected workflows.\nAssumption checks:\n- Did the fix add tests for the exact complaint?\n- Does CI run those tests, or is verification only implied?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/teabuff/machine-bootstrap", "source_id": "graph-query-motif_query-eb325d7029e4b005", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/test_ci_gap_after_feedback/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "teabuff/machine-bootstrap", "source_dataset": "graph_queries/test_ci_gap_after_feedback", "training_usage": "hard_negative"}}}, {"ruleId": "foundry_test_ci_gap", "level": "error", "message": {"text": "Foundry mined test ci gap after feedback: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 341213, "scanner": "foundry_dataset", "fingerprint": "de760c9bf8deaeb0ed168a84536201d1c305104a622dfdc946229e6af51df25b", "category": "testing", "severity": "high", "confidence": 0.78, "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": "Feedback exposes missing tests or CI", "intent": "Hard negatives for feedback/fix chains without adequate guardrails.", "labels": {"bug_fix": 3, "docs_or_claims": 1, "source_or_other": 13, "security_auth_secret": 1, "ci_pending_or_incomplete": 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": "test_ci_gap_after_feedback", "outcomes": {"claimed_resolved_unverified": 6}, "polarity": "bad", "query_id": "test_ci_gap_after_feedback", "severity": "high", "ci_labels": {"ci_pending_or_incomplete": 2}, "synthetic": false, "edge_count": 53, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 14, "comment_chain_has_ci": 1, "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": 27, "node_types": {"repo": 1, "commit": 3, "thread": 1, "comment": 1, "pr_file": 14, "ci_summary": 1, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "teabuff/machine-bootstrap#5", "issue_number": "5", "quality_tiers": {"high_confidence": 3}, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "hard_negative", "source_motif_id": "graph-pattern-motif-thread-06c1a590792ced52", "graph_gold_label": "supported_by_high_confidence_link", "changed_file_labels": {"docs_or_claims": 4, "source_or_other": 52}}, "text": "Graph query export: Feedback exposes missing tests or CI\nQuery id: test_ci_gap_after_feedback\nQuery type: motif_query\nIntent: Hard negatives for feedback/fix chains without adequate guardrails.\nMotif: test_ci_gap_after_feedback\nTraining usage: hard_negative\nGraph gold label: supported_by_high_confidence_link\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#5\nEvidence:\nGraph motif: Feedback or fix context exposes missing test/CI guardrails\nMotif id: test_ci_gap_after_feedback\nPolarity: bad\nTraining usage: hard_negative\nSeverity: high\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#5\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: teabuff/machine-bootstrap#5\nRepo: teabuff/machine-bootstrap\nIssue/PR number: 5\nGraph consistency label: supported_by_high_confidence_link\nNodes: 27\nEdges: 53\nNode types: {'pr_file': 14, 'commit': 3, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'ci_summary': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 14, '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, 'comment_chain_has_ci': 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': 13, 'bug_fix': 3, 'claimed_resolved_unverified': 3, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'security_auth_secret': 1, 'docs_or_claims': 1, 'human_reported_issue_then_fix_attempt': 1, 'ci_pending_or_incomplete': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'high_confidence': 3}\nCI labels: {'ci_pending_or_incomplete': 2}\nCurriculum targets:\n- Turn human feedback into regression tests and CI gates.\n- Penalize fixes that do not add or exercise verification for affected workflows.\nAssumption checks:\n- Did the fix add tests for the exact complaint?\n- Does CI run those tests, or is verification only implied?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/teabuff/machine-bootstrap", "source_id": "graph-query-motif_query-1fbf022a82cb1605", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/test_ci_gap_after_feedback/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "teabuff/machine-bootstrap", "source_dataset": "graph_queries/test_ci_gap_after_feedback", "training_usage": "hard_negative"}}}, {"ruleId": "foundry_bad_chain", "level": "error", "message": {"text": "Foundry mined bad chains: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 323414, "scanner": "foundry_dataset", "fingerprint": "630057a2fb6d050a937fc9ebe5d6fc294effe703e005a32e183ce35c33f5427b", "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": "teabuff/machine-bootstrap#7", "human_labels": ["api_or_backend", "docs_or_claims", "mock_placeholder", "source_or_other"], "issue_number": "7", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.82, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "gold_candidate", "confidence_tier": "high_confidence", "source_chain_id": "evidence-chain-issue_chain-b2840d896422c2cb", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 13, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"api_or_backend": 2, "docs_or_claims": 1, "source_or_other": 10}, "linked_commit_count": 4, "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": 1, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: bad_chains\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#7\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: teabuff/machine-bootstrap#7\nRepo: teabuff/machine-bootstrap\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 4\nLinked CI commit count: 1\nLinked CI labels: {'ci_pending_or_incomplete': 1}\nChanged file count: 13\nLabels: {'mock_placeholder': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 10, 'docs_or_claims': 1, 'api_or_backend': 2}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-299bfc3886142d86\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"mock_placeholder\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/teabuff/machine-bootstrap/pull/7\",\n    \"text\": \"GitHub feedback: mock_placeholder\\nPolarity: bad\\nKind: pull_request_body\\nRepo: teabuff/machine-bootstrap\\nAuthor: teabuff (User)\\nURL: https://github.com/teabuff/machine-bootstrap/pull/7\\nTitle: feat(envs): module-consumable config/ + dir-per-env R2 templates (Plan 3 Part A)\\nBody:\\nPart A of Plan 3 (multi-env + R2). Makes the public roots consumable as pinned git modules and adds the per-env template, wired to an R2 backend that was **live-validated** (init/apply/state + native `use_lockfile` locking \u2014 a 412 `PreconditionFailed` on the `.tflock` conditional write).\\n\\n## `config/` is now module-consumable (backward-compatible)\\n- Dropped the explicit `backend \\\"local\\\" {}` (no backend block \u2192 local by default standalone; an env root supplies the R2 backend; a child module must not declare a backend).\\n- Parameterized the bootstrap `terraform_remote_state` lookup: `bootstrap_state_backend` (default `\\\"local\\\"`) + `bootstrap_state_config` (default `null` \u2192 reads the sibling local state). **Standalone `cd config && tofu apply` is unchanged** (validates green).\\n\\n## `envs/example/` \u2014 dir-per-env template\\n```\\nenvs/example/\\n  bootstrap/  \u2192 module //infra ?ref=REF  + R2 backend (key \u2026/bootstrap.tfstate\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-cdf3199671fc5a5b\",\n    \"filename\": \"config/remote-state.tf\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 5,\n    \"deletions\": 4,\n    \"changes\": 9,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/94341341a5322f2f7157557491930a8a2377dd24/config%2Fremote-state.tf\"\n  },\n  {\n    \"id\": \"github-pr-file-file-5127233e5e6609ab\",\n    \"filename\": \"config/variables.tf\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 15,\n    \"deletions\": 0,\n    \"changes\": 15,\n    \"blob_url\": \"https://github.com/teabuff/machine-bootstrap/blob/94341341a5322f2f7\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/teabuff/machine-bootstrap", "source_id": "comment-chain-pattern-bad_chains-a88fdf465a15bbfe", "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": "teabuff/machine-bootstrap", "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: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 335077, "scanner": "foundry_dataset", "fingerprint": "732132260811cc8933b69b0e6a516305cbcc8d0ddc86ead2ccdc7bbc5a448737", "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": 3, "source_or_other": 4, "security_auth_secret": 1, "ci_pending_or_incomplete": 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": {"ci_pending_or_incomplete": 2}, "synthetic": false, "edge_count": 27, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 4, "comment_chain_has_ci": 1, "chain_has_link_quality": 3, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 4, "thread_has_comment_chain": 1, "comment_chain_links_commit": 3, "comment_chain_touches_file": 4, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 17, "node_types": {"repo": 1, "commit": 3, "thread": 1, "comment": 1, "pr_file": 4, "ci_summary": 1, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "teabuff/machine-bootstrap#6", "issue_number": "6", "quality_tiers": {"high_confidence": 3}, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-7818488fe3b2c1f7", "graph_gold_label": "supported_by_high_confidence_link", "changed_file_labels": {"source_or_other": 16}}, "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_high_confidence_link\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#6\nEvidence:\nGraph motif: Security/auth change without enough guardrails\nMotif id: security_auth_without_guardrails\nPolarity: bad\nTraining usage: assumption_check\nSeverity: critical\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#6\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: teabuff/machine-bootstrap#6\nRepo: teabuff/machine-bootstrap\nIssue/PR number: 6\nGraph consistency label: supported_by_high_confidence_link\nNodes: 17\nEdges: 27\nNode types: {'pr_file': 4, 'commit': 3, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'ci_summary': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 4, 'comment_chain_touches_file': 4, 'issue_chain_touches_file': 4, '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, 'comment_chain_has_ci': 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': 4, 'bug_fix': 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, 'ci_pending_or_incomplete': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'high_confidence': 3}\nCI labels: {'ci_pending_or_incomplete': 2}\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/teabuff/machine-bootstrap", "source_id": "graph-query-motif_query-0a57524f695b83be", "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": "teabuff/machine-bootstrap", "source_dataset": "graph_queries/security_auth_guardrail_gaps", "training_usage": "assumption_check"}}}, {"ruleId": "foundry_auth_guardrail_gap", "level": "error", "message": {"text": "Foundry mined security auth guardrail gaps: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 335076, "scanner": "foundry_dataset", "fingerprint": "0c9182d3f36afa7e006e7182fc0e343a7605386fec181658e4187fc42e37f5a4", "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": 3, "docs_or_claims": 1, "source_or_other": 13, "security_auth_secret": 1, "ci_pending_or_incomplete": 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": {"ci_pending_or_incomplete": 2}, "synthetic": false, "edge_count": 53, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 14, "comment_chain_has_ci": 1, "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": 27, "node_types": {"repo": 1, "commit": 3, "thread": 1, "comment": 1, "pr_file": 14, "ci_summary": 1, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "teabuff/machine-bootstrap#5", "issue_number": "5", "quality_tiers": {"high_confidence": 3}, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-7bbfe26d58ba0837", "graph_gold_label": "supported_by_high_confidence_link", "changed_file_labels": {"docs_or_claims": 4, "source_or_other": 52}}, "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_high_confidence_link\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#5\nEvidence:\nGraph motif: Security/auth change without enough guardrails\nMotif id: security_auth_without_guardrails\nPolarity: bad\nTraining usage: assumption_check\nSeverity: critical\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#5\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: teabuff/machine-bootstrap#5\nRepo: teabuff/machine-bootstrap\nIssue/PR number: 5\nGraph consistency label: supported_by_high_confidence_link\nNodes: 27\nEdges: 53\nNode types: {'pr_file': 14, 'commit': 3, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'ci_summary': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 14, '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, 'comment_chain_has_ci': 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': 13, 'bug_fix': 3, 'claimed_resolved_unverified': 3, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'security_auth_secret': 1, 'docs_or_claims': 1, 'human_reported_issue_then_fix_attempt': 1, 'ci_pending_or_incomplete': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'high_confidence': 3}\nCI labels: {'ci_pending_or_incomplete': 2}\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/teabuff/machine-bootstrap", "source_id": "graph-query-motif_query-4eca03e9c0da80dc", "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": "teabuff/machine-bootstrap", "source_dataset": "graph_queries/security_auth_guardrail_gaps", "training_usage": "assumption_check"}}}, {"ruleId": "foundry_auth_guardrail_gap", "level": "error", "message": {"text": "Foundry mined security auth guardrail gaps: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 335075, "scanner": "foundry_dataset", "fingerprint": "0432031066995781e7babda356d4bb352252552d63b1a4160241005af4c8f62b", "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_claims": 1, "source_or_other": 12, "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": 50, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 13, "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": 24, "node_types": {"repo": 1, "commit": 2, "thread": 1, "comment": 1, "pr_file": 13, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "teabuff/machine-bootstrap#2", "issue_number": "2", "quality_tiers": {"high_confidence": 3}, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-6af6f8e6c4b104fc", "graph_gold_label": "supported_by_high_confidence_link", "changed_file_labels": {"docs_or_claims": 4, "source_or_other": 48}}, "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_high_confidence_link\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#2\nEvidence:\nGraph motif: Security/auth change without enough guardrails\nMotif id: security_auth_without_guardrails\nPolarity: bad\nTraining usage: assumption_check\nSeverity: critical\nRepo: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#2\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: teabuff/machine-bootstrap#2\nRepo: teabuff/machine-bootstrap\nIssue/PR number: 2\nGraph consistency label: supported_by_high_confidence_link\nNodes: 24\nEdges: 50\nNode types: {'pr_file': 13, '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': 13, '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': 12, 'claimed_resolved_unverified': 3, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'security_auth_secret': 1, 'docs_or_claims': 1, 'human_reported_issue_then_fix_attempt': 1, 'security_or_secrets': 1, 'bug_fix': 1}\nOutcomes: {'claimed_resolved_unverified': 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/teabuff/machine-bootstrap", "source_id": "graph-query-motif_query-4b8db0d9fbcebf58", "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": "teabuff/machine-bootstrap", "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: teabuff/machine-bootstrap"}, "properties": {"repobilityId": 327226, "scanner": "foundry_dataset", "fingerprint": "0c72254391272676f3378488056a75f90a2b5fffe218bb420d9247476a1a7e21", "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": {"bug_fix": 3, "api_or_backend": 2, "docs_or_claims": 1, "source_or_other": 10, "mock_placeholder": 1, "generated_provenance": 1, "ci_pending_or_incomplete": 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": {"ci_pending_or_incomplete": 2}, "synthetic": false, "edge_count": 53, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 13, "comment_chain_has_ci": 1, "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": 4, "comment_chain_touches_file": 12, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 27, "node_types": {"repo": 1, "commit": 4, "thread": 1, "comment": 1, "pr_file": 13, "ci_summary": 1, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "teabuff/machine-bootstrap#7", "issue_number": "7", "quality_tiers": {"high_confidence": 3}, "repo_full_name": "teabuff/machine-bootstrap", "training_usage": "hard_negative", "source_motif_id": "graph-pattern-motif-thread-0452700deb47bac0", "graph_gold_label": "supported_by_high_confidence_link", "changed_file_labels": {"api_or_backend": 8, "docs_or_claims": 4, "source_or_other": 40}}, "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: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#7\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: teabuff/machine-bootstrap\nThread: teabuff/machine-bootstrap#7\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: teabuff/machine-bootstrap#7\nRepo: teabuff/machine-bootstrap\nIssue/PR number: 7\nGraph consistency label: supported_by_high_confidence_link\nNodes: 27\nEdges: 53\nNode types: {'pr_file': 13, 'commit': 4, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'ci_summary': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 13, 'comment_chain_touches_file': 12, 'issue_chain_touches_file': 12, 'comment_chain_links_commit': 4, 'chain_has_link_quality': 3, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'comment_chain_has_ci': 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': 10, 'bug_fix': 3, 'claimed_resolved_unverified': 3, 'api_or_backend': 2, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'mock_placeholder': 1, 'docs_or_claims': 1, 'human_reported_issue_then_fix_attempt': 1, 'generated_provenance': 1, 'ci_pending_or_incomplete': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'high_confidence': 3}\nCI labels: {'ci_pending_or_incomplete': 2}\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/teabuff/machine-bootstrap", "source_id": "graph-query-motif_query-977152b3a1dfd40a", "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": "teabuff/machine-bootstrap", "source_dataset": "graph_queries/mock_as_real_or_placeholder", "training_usage": "hard_negative"}}}, {"ruleId": "scanner-aa5acaa49eb8315b", "level": "note", "message": {"text": "Containers defined but no K8s/orchestration manifest found"}, "properties": {"repobilityId": "b230ea9b68736081", "scanner": "scanner-primary", "fingerprint": "aa5acaa49eb8315b", "layer": "hardware", "severity": "low", "confidence": 1.0, "tags": ["coverage", "deployment"]}}, {"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-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-141b30a41e03817b", "level": "note", "message": {"text": "No license file detected"}, "properties": {"repobilityId": "70394969bddd67ee", "scanner": "scanner-primary", "fingerprint": "141b30a41e03817b", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["license", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-b9088664ace7f748", "level": "warning", "message": {"text": "Composite production-readiness gap"}, "properties": {"repobilityId": "69b92680596c7449", "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": "36b604e2f9e4c039", "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": "0655b538cd8e781e", "scanner": "scanner-primary", "fingerprint": "8424db9c75e04ba4", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["provenance", "git-history", "generated-repo-pattern"]}}]}]}