{"version": "2.1.0", "$schema": "https://json.schemastore.org/sarif-2.1.0.json", "runs": [{"tool": {"driver": {"name": "Repobility", "informationUri": "https://repobility.com", "rules": [{"id": "foundry_unresolved_feedback", "name": "Foundry mined unresolved feedback: StanleyAIbrain/stanley-install", "shortDescription": {"text": "Foundry mined unresolved feedback: StanleyAIbrain/stanley-install"}, "fullDescription": {"text": "Graph query export: Human feedback without linked fix evidence\nQuery id: unresolved_feedback\nQuery type: motif_query\nIntent: Negative/unresolved examples that should not be hallucinated into fixes.\nMotif: unlinked_feedback_needs_evidence\nTraining usage: negative_or_unresolved\nGraph gold label: needs_more_evidence\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#2\nEvidence:\nGraph motif: Human feedback exists without a linked fix\nMotif id: unlinked_feedback_needs_evidence\nPolarity: bad\nTraining usage: negative_or_unresolved\nSeverity: medium\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#2\nGraph gold label: needs_more_evidence\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#2\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 2\nGraph consistency label: needs_more_evidence\nNodes: 14\nEdges: 26\nNode types: {'pr_file': 5, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_"}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "medium", "confidence": 0.7, "cwe": "", "owasp": ""}}, {"id": "foundry_blueprint_gap", "name": "Foundry mined blueprint gap alignment: StanleyAIbrain/stanley-install", "shortDescription": {"text": "Foundry mined blueprint gap alignment: StanleyAIbrain/stanley-install"}, "fullDescription": {"text": "Graph query export: Human feedback aligned with blueprint or architecture gaps\nQuery id: blueprint_gap_alignment\nQuery type: motif_query\nIntent: Curriculum-gap examples connecting issue threads to helicopter-view gaps.\nMotif: blueprint_gap_alignment\nTraining usage: curriculum_gap\nGraph gold label: supported_by_verification_signal\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#1\nEvidence:\nGraph motif: Human feedback aligns with blueprint or architecture gaps\nMotif id: blueprint_gap_alignment\nPolarity: mixed\nTraining usage: curriculum_gap\nSeverity: medium\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#1\nGraph gold label: supported_by_verification_signal\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#1\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 1\nGraph consistency label: supported_by_verification_signal\nNodes: 23\nEdges: 38\nNode types: {'pr_file': 6, 'commit': 5, 'link_qual"}, "properties": {"scanner": "foundry_dataset", "category": "tech_debt", "severity": "medium", "confidence": 0.7, "cwe": "", "owasp": ""}}, {"id": "foundry_assumption_check", "name": "Foundry mined assumption checks: StanleyAIbrain/stanley-install", "shortDescription": {"text": "Foundry mined assumption checks: StanleyAIbrain/stanley-install"}, "fullDescription": {"text": "Comment chain pattern product: assumption_checks\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#9\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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#9\nRepo: StanleyAIbrain/stanley-install\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: 2\nLabels: {'security_auth_secret': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'docs_or_claims': 2}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-2b50add392a4e0d5\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIb"}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "medium", "confidence": 0.62, "cwe": "", "owasp": ""}}, {"id": "foundry_docs_only_fix", "name": "Foundry mined docs only runtime fix: StanleyAIbrain/stanley-install", "shortDescription": {"text": "Foundry mined docs only runtime fix: StanleyAIbrain/stanley-install"}, "fullDescription": {"text": "Graph query export: Docs-only response to runtime or integration issue\nQuery id: docs_only_runtime_fix\nQuery type: motif_query\nIntent: Assumption-check examples where docs or claims are not enough proof.\nMotif: docs_only_runtime_fix\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#9\nEvidence:\nGraph motif: Runtime/integration complaint answered mostly with docs or claims\nMotif id: docs_only_runtime_fix\nPolarity: bad\nTraining usage: assumption_check\nSeverity: high\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#9\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#9\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 9\nGraph consistency label: weak_supervision_needs_review\nNodes: 14\nEdges: 20\nNode types: {'commit': 3, 'link_quality': 3, 'pr_file': 2, 'thread': 1"}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "high", "confidence": 0.8, "cwe": "", "owasp": ""}}, {"id": "foundry_test_ci_gap", "name": "Foundry mined test ci gap after feedback: StanleyAIbrain/stanley-install", "shortDescription": {"text": "Foundry mined test ci gap after feedback: StanleyAIbrain/stanley-install"}, "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_verification_signal\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#1\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: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#1\nGraph gold label: supported_by_verification_signal\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#1\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 1\nGraph consistency label: supported_by_verification_signal\nNodes: 23\nEdges: 38\nNode types: {'pr_file': 6, 'commit': 5, 'link_quality': 4, 'thread': 1, 'r"}, "properties": {"scanner": "foundry_dataset", "category": "testing", "severity": "high", "confidence": 0.78, "cwe": "", "owasp": ""}}, {"id": "foundry_bad_chain", "name": "Foundry mined bad chains: StanleyAIbrain/stanley-install", "shortDescription": {"text": "Foundry mined bad chains: StanleyAIbrain/stanley-install"}, "fullDescription": {"text": "Comment chain pattern product: bad_chains\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#7\nRepo: StanleyAIbrain/stanley-install\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: 1\nLabels: {'mock_placeholder': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'docs_or_claims': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-0e6c12f65a75dc83\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"mock_placeholder\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-in"}, "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: StanleyAIbrain/stanley-install", "shortDescription": {"text": "Foundry mined security auth guardrail gaps: StanleyAIbrain/stanley-install"}, "fullDescription": {"text": "Graph query export: Security/auth changes without enough guardrails\nQuery id: security_auth_guardrail_gaps\nQuery type: motif_query\nIntent: Assumption-check security/auth examples requiring stronger tests or CI.\nMotif: security_auth_without_guardrails\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#9\nEvidence:\nGraph motif: Security/auth change without enough guardrails\nMotif id: security_auth_without_guardrails\nPolarity: bad\nTraining usage: assumption_check\nSeverity: critical\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#9\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#9\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 9\nGraph consistency label: weak_supervision_needs_review\nNodes: 14\nEdges: 20\nNode types: {'commit': 3, 'link_quality': 3, 'pr_file': "}, "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: StanleyAIbrain/stanley-install", "shortDescription": {"text": "Foundry mined mock as real or placeholder: StanleyAIbrain/stanley-install"}, "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: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#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: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#7\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#7\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 7\nGraph consistency label: weak_supervision_needs_review\nNodes: 12\nEdges: 16\nNode types: {'link_quality': 3, 'com"}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "critical", "confidence": 0.82, "cwe": "", "owasp": ""}}, {"id": "scanner-ab2f5f919011fe82", "name": "Possibly dead Python function: filter", "shortDescription": {"text": "Possibly dead Python function: filter"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-bead75b0f9233e05", "name": "No API endpoints detected", "shortDescription": {"text": "No API endpoints detected"}, "fullDescription": {"text": "The scanner did not find FastAPI/Flask/Express/NestJS/GraphQL/gRPC routes. If this repo exposes APIs, the framework may be unsupported."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "info", "confidence": 1.0}}, {"id": "scanner-fc7540b0cf128c2a", "name": "Stray `console.log` in TS/JS \u2014 update/reliability/liveness-worker/src/index.js:25", "shortDescription": {"text": "Stray `console.log` in TS/JS \u2014 update/reliability/liveness-worker/src/index.js:25"}, "fullDescription": {"text": "Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable.\n\nWhy: Hygiene \u2014 easy to leak debug output.\nRule id: fq.console-leak"}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "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-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-4127abf29979d7ba", "name": "Node manifest has dependencies but no lockfile: dashboard/package.json", "shortDescription": {"text": "Node manifest has dependencies but no lockfile: dashboard/package.json"}, "fullDescription": {"text": "`package.json` declares dependencies, but no same-directory npm/pnpm/yarn/bun lockfile was found. Generated projects without lockfiles are less reproducible and harder to secure-scan precisely."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-3ab5d313dda8e5f9", "name": "Debug logging residue appears in source files", "shortDescription": {"text": "Debug logging residue appears in source files"}, "fullDescription": {"text": "Found 55 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-2d0c7b7ab8f8aacf", "name": "Critical user flow still appears backed by mock or placeholder data", "shortDescription": {"text": "Critical user flow still appears backed by mock or placeholder data"}, "fullDescription": {"text": "A payment/auth/admin/order/billing-style flow contains mock, fake, TODO, dummy, or placeholder markers in runtime source. In the Fable corpus this is a high-leverage completeness smell: the app can look finished while the money, identity, or tenant flow is still scaffolded."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "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, lockfile. 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": "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}}, {"id": "scanner-8424db9c75e04ba4", "name": "Very short observed git history", "shortDescription": {"text": "Very short observed git history"}, "fullDescription": {"text": "The repo has multiple source files but two or fewer visible commits. This is not a failure by itself, but it lowers confidence in evolution-based diagnosis."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-2bdd6ae268f78ab9", "name": "Commented-code block (9 lines) in dashboard/src/index.js:5", "shortDescription": {"text": "Commented-code block (9 lines) in dashboard/src/index.js:5"}, "fullDescription": {"text": "A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-ae203eea06a650c5", "name": "`fetch()` without try/.catch or AbortSignal \u2014 dashboard/src/index.js:43", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 dashboard/src/index.js:43"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-595fb457dae1aca7", "name": "Commented-code block (6 lines) in update/reliability/log-redact/sitecustomize.py:3", "shortDescription": {"text": "Commented-code block (6 lines) in update/reliability/log-redact/sitecustomize.py:3"}, "fullDescription": {"text": "A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-6d5c225e0ef938a7", "name": "`fetch()` without try/.catch or AbortSignal \u2014 update/reliability/liveness-worker/src/index.js:115", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 update/reliability/liveness-worker/src/index.js:115"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-e9db15888503d674", "name": "Network/subprocess call without timeout or try/except \u2014 update/tools/apply_pieceC.py:204", "shortDescription": {"text": "Network/subprocess call without timeout or try/except \u2014 update/tools/apply_pieceC.py:204"}, "fullDescription": {"text": "`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-a78c4ca10d7f1fb9", "name": "Network/subprocess call without timeout or try/except \u2014 update/tools/apply_security_hardening.py:93", "shortDescription": {"text": "Network/subprocess call without timeout or try/except \u2014 update/tools/apply_security_hardening.py:93"}, "fullDescription": {"text": "`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}]}}, "automationDetails": {"id": "repobility/20225"}, "properties": {"repository": "StanleyAIbrain/stanley-install", "repoUrl": "https://github.com/StanleyAIbrain/stanley-install", "branch": "main"}, "results": [{"ruleId": "foundry_unresolved_feedback", "level": "warning", "message": {"text": "Foundry mined unresolved feedback: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 361429, "scanner": "foundry_dataset", "fingerprint": "ad72c32d30c6b8480366a7124152ae00a361f2efd05e82fa911f107b3870ca11", "category": "practices", "severity": "medium", "confidence": 0.7, "triageState": "open", "verdict": "needs_review", "isResolved": false, "reason": "Imported from mined Foundry/Fable5 evidence with real GitHub/source provenance. Review source_id before acting.", "evidence": {"meta": {"kind": "graph_query_record", "title": "Human feedback without linked fix evidence", "intent": "Negative/unresolved examples that should not be hallucinated into fixes.", "labels": {"test_or_ci": 1, "api_or_backend": 1, "docs_or_claims": 2, "source_or_other": 1, "agent_instruction_gap": 1, "issue_or_pull_request_thread": 1, "not_resolved_or_not_observed": 3, "human_reported_issue_no_linked_fix": 1, "thread_has_human_issue_without_fix_context": 2}, "source": "graph_query_export", "motif_id": "unlinked_feedback_needs_evidence", "outcomes": {"not_resolved_or_not_observed": 6}, "polarity": "bad", "query_id": "unresolved_feedback", "severity": "medium", "ci_labels": {}, "synthetic": false, "edge_count": 26, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 5, "chain_has_link_quality": 3, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 5, "thread_has_comment_chain": 1, "comment_chain_touches_file": 5, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 14, "node_types": {"repo": 1, "thread": 1, "comment": 1, "pr_file": 5, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#2", "issue_number": "2", "quality_tiers": {"unresolved": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "negative_or_unresolved", "source_motif_id": "graph-pattern-motif-thread-5542df1bd5c836f3", "graph_gold_label": "needs_more_evidence", "changed_file_labels": {"test_or_ci": 4, "api_or_backend": 4, "docs_or_claims": 8, "source_or_other": 4}}, "text": "Graph query export: Human feedback without linked fix evidence\nQuery id: unresolved_feedback\nQuery type: motif_query\nIntent: Negative/unresolved examples that should not be hallucinated into fixes.\nMotif: unlinked_feedback_needs_evidence\nTraining usage: negative_or_unresolved\nGraph gold label: needs_more_evidence\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#2\nEvidence:\nGraph motif: Human feedback exists without a linked fix\nMotif id: unlinked_feedback_needs_evidence\nPolarity: bad\nTraining usage: negative_or_unresolved\nSeverity: medium\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#2\nGraph gold label: needs_more_evidence\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#2\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 2\nGraph consistency label: needs_more_evidence\nNodes: 14\nEdges: 26\nNode types: {'pr_file': 5, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 5, 'comment_chain_touches_file': 5, 'issue_chain_touches_file': 5, 'chain_has_link_quality': 3, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'not_resolved_or_not_observed': 3, 'docs_or_claims': 2, 'thread_has_human_issue_without_fix_context': 2, 'issue_or_pull_request_thread': 1, 'agent_instruction_gap': 1, 'api_or_backend': 1, 'test_or_ci': 1, 'source_or_other': 1, 'human_reported_issue_no_linked_fix': 1}\nOutcomes: {'not_resolved_or_not_observed': 6}\nQuality tiers: {'unresolved': 3}\nCI labels: {}\nCurriculum targets:\n- Teach models to preserve unresolved human feedback instead of hallucinating fixes.\n- Build issue-to-regression examples where no accepted fix exists yet.\nAssumption checks:\n- Can a commit be linked by issue number, SHA, changed path, or time window?\n- If no link exists, is this explicitly labelled unresolved?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-5e6f2547e4d3725c", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/unresolved_feedback/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "StanleyAIbrain/stanley-install", "source_dataset": "graph_queries/unresolved_feedback", "training_usage": "negative_or_unresolved"}}}, {"ruleId": "foundry_blueprint_gap", "level": "warning", "message": {"text": "Foundry mined blueprint gap alignment: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 345207, "scanner": "foundry_dataset", "fingerprint": "381f55284c6fce9a0c25a4c6d783ae3df1d2af004e7a931b63ea55e412be11e5", "category": "tech_debt", "severity": "medium", "confidence": 0.7, "triageState": "open", "verdict": "needs_review", "isResolved": false, "reason": "Imported from mined Foundry/Fable5 evidence with real GitHub/source provenance. Review source_id before acting.", "evidence": {"meta": {"kind": "graph_query_record", "title": "Human feedback aligned with blueprint or architecture gaps", "intent": "Curriculum-gap examples connecting issue threads to helicopter-view gaps.", "labels": {"bug_fix": 1, "test_or_ci": 3, "test_ci_gap": 1, "source_or_other": 3, "verification_or_tests": 4, "mostly follows blueprint": 1, "issue_or_pull_request_thread": 1, "blueprint_human_gap_disagreement": 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": "blueprint_gap_alignment", "outcomes": {"claimed_resolved_with_verification_signal": 6}, "polarity": "mixed", "query_id": "blueprint_gap_alignment", "severity": "medium", "ci_labels": {}, "synthetic": false, "edge_count": 38, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 6, "alignment_uses_comment": 1, "alignment_uses_finding": 1, "chain_has_link_quality": 4, "comment_aligns_finding": 1, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 6, "thread_has_comment_chain": 1, "comment_chain_links_commit": 5, "comment_chain_touches_file": 6, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 23, "node_types": {"repo": 1, "commit": 5, "thread": 1, "comment": 1, "pr_file": 6, "alignment": 1, "fix_outcome": 1, "issue_chain": 1, "link_quality": 4, "comment_chain": 1, "blueprint_finding": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#1", "issue_number": "1", "quality_tiers": {"high_confidence": 3, "assumption_check": 1}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "curriculum_gap", "source_motif_id": "graph-pattern-motif-thread-1f5f46fd0f3cd174", "graph_gold_label": "supported_by_verification_signal", "changed_file_labels": {"test_or_ci": 12, "source_or_other": 12}}, "text": "Graph query export: Human feedback aligned with blueprint or architecture gaps\nQuery id: blueprint_gap_alignment\nQuery type: motif_query\nIntent: Curriculum-gap examples connecting issue threads to helicopter-view gaps.\nMotif: blueprint_gap_alignment\nTraining usage: curriculum_gap\nGraph gold label: supported_by_verification_signal\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#1\nEvidence:\nGraph motif: Human feedback aligns with blueprint or architecture gaps\nMotif id: blueprint_gap_alignment\nPolarity: mixed\nTraining usage: curriculum_gap\nSeverity: medium\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#1\nGraph gold label: supported_by_verification_signal\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#1\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 1\nGraph consistency label: supported_by_verification_signal\nNodes: 23\nEdges: 38\nNode types: {'pr_file': 6, 'commit': 5, 'link_quality': 4, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1, 'alignment': 1, 'blueprint_finding': 1}\nEdge types: {'thread_touches_file': 6, 'comment_chain_touches_file': 6, 'issue_chain_touches_file': 6, 'comment_chain_links_commit': 5, 'chain_has_link_quality': 4, '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, 'alignment_uses_comment': 1, 'alignment_uses_finding': 1, 'comment_aligns_finding': 1}\nLabels: {'verification_or_tests': 4, 'test_or_ci': 3, 'source_or_other': 3, 'claimed_resolved_with_verification_signal': 3, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'test_ci_gap': 1, 'human_reported_issue_then_verified_fix_attempt': 1, 'bug_fix': 1, 'blueprint_human_gap_disagreement': 1, 'mostly follows blueprint': 1}\nOutcomes: {'claimed_resolved_with_verification_signal': 6}\nQuality tiers: {'high_confidence': 3, 'assumption_check': 1}\nCI labels: {}\nCurriculum targets:\n- Use helicopter-view architecture/schema/design evidence beside issue threads.\n- Teach models to compare requested product class against implementation layers.\nAssumption checks:\n- Which blueprint layer is absent: frontend, API, data, auth, tests, or deployment?\n- Does human feedback confirm the same architectural gap?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-bc015496f7cfddfc", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/blueprint_gap_alignment/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "StanleyAIbrain/stanley-install", "source_dataset": "graph_queries/blueprint_gap_alignment", "training_usage": "curriculum_gap"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 300881, "scanner": "foundry_dataset", "fingerprint": "ea7a4203b0b4dc1e24c7899b88edd074c6db09d1e4621f2d7ef7bfb6af5b8826", "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": "StanleyAIbrain/stanley-install#9", "human_labels": ["docs_or_claims", "security_auth_secret"], "issue_number": "9", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.65, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-db9f7e580e8b79cc", "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": {"docs_or_claims": 2}, "linked_commit_count": 3, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_weak_supervision", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#9\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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#9\nRepo: StanleyAIbrain/stanley-install\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: 2\nLabels: {'security_auth_secret': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'docs_or_claims': 2}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-2b50add392a4e0d5\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/9\",\n    \"text\": \"GitHub feedback: security_auth_secret\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/9\\nTitle: docs: fix parity-audit two-posture self-contradictions \u2192 v1.5.3\\nBody:\\nJordan's v1.5.2 closeout came back IDENTICAL (35 PASS / 2 expected-DIFFERS / 0 FAIL) and caught two stale-text rows in the parity audit that contradict its own v1.5.2 two-posture preamble.\\n\\n- **FIX 1** \u2014 fingerprint Security-posture row said WAF \\\"REQUIRED\\\" + documents routes \\\"have no app-layer key check\\\" (both false since v1.5.2). Now matches line-38: app enforces key (public no-key \u2192 401), WAF optional defense-in-depth.\\n- **FIX 2** \u2014 AUD-6.4 failed a public 401 (\\\"anything that reaches the app\\\"). Now distinguishes REFUSED (401/403 = PASS) from SERVED/accepted (2xx/422 past auth = FAIL-CRITICAL).\\n\\nAll three sections now state the same model. Renamed both docs to v1.5.3 + internal version bumps for self-consistency. Doc text only \u2014 no code, no live brain. Scan clean.\\n\\n\ud83e\udd16 Generated with [Claude Code](https://claude.com/claude-code)\\nEOF\\n)\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-b9ae8f8d1e5b4a2a\",\n    \"filename\": \"update/EVEREST-v1.5.3-MEGA-GUIDE.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"renamed\",\n    \"additions\": 11,\n    \"deletions\": 11,\n    \"changes\": 22,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/3b7a21c88897d7a86935f52e98b04a244ac74668/update%2FEVEREST-v1.5.3-MEGA-GUIDE.md\"\n  },\n  {\n    \"id\": \"github-pr-file-file-2820c2950e0eaebc\",\n    \"filename\": \"update/PARITY-AUDIT-v1.5.3.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"renamed\",\n    \"additions\": 10,\n    \"deletions\": 10,\n    \"changes\": 20,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/3b7a21c88897d7a86935f52e98b04a244ac74668/update%2FPARITY-AUDIT-v1.5.3.md\"\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-assumption_checks-9b12670861343486", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 300880, "scanner": "foundry_dataset", "fingerprint": "21640afdfee314f375b53ab32568c9733059b06ff0effa59a557e3f17b96b5ed", "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": "StanleyAIbrain/stanley-install#8", "human_labels": ["api_or_backend", "docs_or_claims", "security_auth_secret"], "issue_number": "8", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.65, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-003fdc1dbbc87f27", "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": {"api_or_backend": 1, "docs_or_claims": 3}, "linked_commit_count": 4, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_weak_supervision", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#8\nRepo: StanleyAIbrain/stanley-install\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 4\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 4\nLabels: {'security_auth_secret': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'api_or_backend': 1, 'docs_or_claims': 3}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-e4448340bed86c63\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/8\",\n    \"text\": \"GitHub feedback: security_auth_secret\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/8\\nTitle: fix(v1.5.2): Jordan gated-review fixes (checkout blocker + 6 decisions)\\nBody:\\nJordan's Gate-0 review caught the v1.5.0 tag predating the mega-guide (checkout would delete the guide mid-install) plus 6 ratified joint decisions. All 8 fixes (A\u2013H) in one PR; ship as v1.5.2 after merge.\\n\\n- **A** (blocker): guide \u2192 v1.5.2 name + checkout v1.5.2 with a survives-its-own-checkout self-test\\n- **B**: two-posture security (local 401 always; public 401 OR 403 both PASS) \u2014 guide table + parity audit Section 0 corrected (pre-v1.5.2 'no app-layer auth' note fixed)\\n- **C**: explicit clustering/decay lines + load-bearing note (template + guide)\\n- **D**: canary padded >100 chars + bulk-delete cleanup, count returns exact\\n- **E**: archive path Expected-to-Differ, no migration\\n- **F**: OAuth constraint logged in UPDATE_NOTES (log-only; clean one-liner kept)\\n- **G**: verify-first standing header (guide + parity audit)\\n- **H**: PARITY-AUDIT-v1.5.2.md added (canonical customer-install check)\\n\\nDocs\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-16476b354f79bfc4\",\n    \"filename\": \"templates/memory-server.sh.tmpl\",\n    \"label\": \"api_or_backend\",\n    \"status\": \"modified\",\n    \"additions\": 7,\n    \"deletions\": 3,\n    \"changes\": 10,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/ed0d5732059ae619ae9232f90551ee1165a60ab7/templates%2Fmemory-server.sh.tmpl\"\n  },\n  {\n    \"id\": \"github-pr-file-file-217c26d630f19316\",\n    \"filename\": \"update/EVEREST-v1.5.2-MEGA-GUIDE.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"renamed\",\n    \"additions\": 55,\n    \"deletions\": 31,\n    \"changes\": 86,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-i\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-assumption_checks-7ffd52082559f7b7", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 300879, "scanner": "foundry_dataset", "fingerprint": "0cd9abb66aadf24ccb0f6be43c2a0f779d87bf920e2e543916b8193807533d7b", "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": "StanleyAIbrain/stanley-install#6", "human_labels": ["api_or_backend", "docs_or_claims", "security_auth_secret", "source_or_other", "test_or_ci"], "issue_number": "6", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.65, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-6f6a92e55b6f2f90", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 7, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"test_or_ci": 1, "api_or_backend": 1, "docs_or_claims": 3, "source_or_other": 2}, "linked_commit_count": 4, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_weak_supervision", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#6\nRepo: StanleyAIbrain/stanley-install\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 4\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 7\nLabels: {'security_auth_secret': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 2, 'api_or_backend': 1, 'docs_or_claims': 3, 'test_or_ci': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-0deec4f0c253b7fb\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/6\",\n    \"text\": \"GitHub feedback: security_auth_secret\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/6\\nTitle: Harden installer: portable app-layer security fixes + self-verify\\nBody:\\nRoot-fixes the security audit findings (SECURITY-AUDIT-reference-brain-2026-06-10) in `install.sh` + templates so every island and customer inherits a hardened install. Replaces the reference brain's per-zone Worker route (not portable) with **backend auth that needs no edge config**.\\n\\n## The 5 fixes\\n- **FIX1 \u2014 documents-router auth (mandatory).** `apply_security_hardening.py` adds a router-level `Depends(require_read_access)` so `/api/documents/*` refuses no-key requests like every other route. **Runtime-proven on a clean 10.26.5 venv:** no-key upload `422\u2192401`, keyed upload `422` (auth passes, file missing), history no-key `200\u2192401`.\\n- **FIX2 \u2014 CORS.** Template `MCP_CORS_ORIGINS` `*` \u2192 `https://claude.ai,https://*.claude.ai`.\\n- **FIX3 \u2014 header-only key on `/api/*`.** Drops `?api_key=` (key-in-logs); `/mcp?api_key=` preserved for the connector. Proven: `/api/search?api_key=` `401`, header `200`, `/mcp?a\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-9d164990fc886c24\",\n    \"filename\": \"install.sh\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 21,\n    \"deletions\": 0,\n    \"changes\": 21,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/c9d58c3791214f28c9d410d7478e88b58c79e462/install.sh\"\n  },\n  {\n    \"id\": \"github-pr-file-file-3103ec9c218dbd59\",\n    \"filename\": \"templates/memory-server.sh.tmpl\",\n    \"label\": \"api_or_backend\",\n    \"status\": \"modified\",\n    \"additions\": 5,\n    \"deletions\": 1,\n    \"changes\": 6,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/c9d\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-assumption_checks-99f56f79772ebcc1", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 300878, "scanner": "foundry_dataset", "fingerprint": "57352e01903d7b1b1482ec02c1946755890c8ddbd45cdb648ece970bf42faec8", "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": "StanleyAIbrain/stanley-install#5", "human_labels": ["deployment_env_gap", "source_or_other", "test_or_ci"], "issue_number": "5", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "ambiguous_needs_more_evidence", "source_backed": true, "max_confidence": 0.65, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-74a4779fc9687dcd", "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": {"test_or_ci": 1, "source_or_other": 1}, "linked_commit_count": 2, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_weak_supervision", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#5\nOutcome: ambiguous_needs_more_evidence\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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#5\nRepo: StanleyAIbrain/stanley-install\nThread label: thread_has_human_issue_and_fix_context\nOutcome: ambiguous_needs_more_evidence\nComment count: 1\nLinked commit count: 2\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 2\nLabels: {'deployment_env_gap': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'test_or_ci': 1, 'source_or_other': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-6453495aee2fbed1\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"deployment_env_gap\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/5\",\n    \"text\": \"GitHub feedback: deployment_env_gap\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/5\\nTitle: verify.py: normalize date matching in server date-gate verdict\\nBody:\\nComma/zero-padding normalization; production was already correct (#1 @0.95).\\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-345aa9aceafda4c0\",\n    \"filename\": \"update/tools/tests/test_verify.py\",\n    \"label\": \"test_or_ci\",\n    \"status\": \"modified\",\n    \"additions\": 7,\n    \"deletions\": 0,\n    \"changes\": 7,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/57dcec5a58e3522ecd210784a0a263868d48d0c9/update%2Ftools%2Ftests%2Ftest_verify.py\"\n  },\n  {\n    \"id\": \"github-pr-file-file-344a074106e1a94f\",\n    \"filename\": \"update/tools/verify.py\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 11,\n    \"deletions\": 3,\n    \"changes\": 14,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/57dcec5a58e3522ecd210784a0a263868d48d0c9/update%2Ftools%2Fverify.py\"\n  }\n]\nLinked chain ids:\n[\"evidence-chain-comment_to_commit-4e52bb38a54ad261\"]\nSource graph evidence:\nSource evidence repo graph summary\nRepo: StanleyAIbrain/stanley-install\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_summary\": 1, \"repo_has_source_artifact\": 1, \"repo_has_source_bundle\": 1, \"source_bundle_uses_cooccurrence_profile\": 1}\nArtifact families: {\"docs\": 1}\nHelicopter views: {}\nBundle labels: {\"source_backed_security_guardrail_bundle\": 1}\nCo-occur\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-assumption_checks-45782b1fc73bc855", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 300877, "scanner": "foundry_dataset", "fingerprint": "216afa70d498711cfe1aad368817b43c3371324467dc62b5eadf6c545e337c0b", "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": "StanleyAIbrain/stanley-install#4", "human_labels": ["deployment_env_gap", "source_or_other", "test_or_ci"], "issue_number": "4", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "ambiguous_needs_more_evidence", "source_backed": true, "max_confidence": 0.65, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-368d83def1097312", "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": {"test_or_ci": 1, "source_or_other": 1}, "linked_commit_count": 4, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_weak_supervision", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#4\nOutcome: ambiguous_needs_more_evidence\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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#4\nRepo: StanleyAIbrain/stanley-install\nThread label: thread_has_human_issue_and_fix_context\nOutcome: ambiguous_needs_more_evidence\nComment count: 1\nLinked commit count: 4\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 2\nLabels: {'deployment_env_gap': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'test_or_ci': 1, 'source_or_other': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-c8a5c5e7fe19f990\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"deployment_env_gap\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/4\",\n    \"text\": \"GitHub feedback: deployment_env_gap\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/4\\nTitle: verify.py: date gate via live retrieve path when --server-url given\\nBody:\\nFixes the last red gate: production retrieval is correct (dated instance #1 @0.95); the offline sim diverged. Test the real path when available.\\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-55702e865980231d\",\n    \"filename\": \"update/tools/tests/test_verify.py\",\n    \"label\": \"test_or_ci\",\n    \"status\": \"modified\",\n    \"additions\": 17,\n    \"deletions\": 0,\n    \"changes\": 17,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/d10105b9a4d103427a7800b1c1dac586936ce0d1/update%2Ftools%2Ftests%2Ftest_verify.py\"\n  },\n  {\n    \"id\": \"github-pr-file-file-6faedddfe656f861\",\n    \"filename\": \"update/tools/verify.py\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 35,\n    \"deletions\": 4,\n    \"changes\": 39,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/d10105b9a4d103427a7800b1c1dac586936ce0d1/update%2Ftools%2Fverify.py\"\n  }\n]\nLinked chain ids:\n[\"evidence-chain-comment_to_commit-77d2b8c8b460bc51\"]\nSource graph evidence:\nSource evidence repo graph summary\nRepo: StanleyAIbrain/stanley-install\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_summary\": 1, \"repo_has_source_artifact\": 1, \"repo_has_source_bundle\": 1, \"source_bundle_uses_cooccurrence_profile\": 1}\nArtifact families: {\"docs\": 1}\nHelicopter views\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-assumption_checks-8955776db3201cb8", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 300876, "scanner": "foundry_dataset", "fingerprint": "106b56409920fca5a7108dcaf2fcac251782a21fcb748a15ac997b893e375e1d", "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": "StanleyAIbrain/stanley-install#3", "human_labels": ["deployment_env_gap", "docs_or_claims", "source_or_other", "test_or_ci"], "issue_number": "3", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "ambiguous_needs_more_evidence", "source_backed": true, "max_confidence": 0.65, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-e4e6474ceb3824fc", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 5, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"test_or_ci": 1, "docs_or_claims": 3, "source_or_other": 1}, "linked_commit_count": 1, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_weak_supervision", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#3\nOutcome: ambiguous_needs_more_evidence\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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#3\nRepo: StanleyAIbrain/stanley-install\nThread label: thread_has_human_issue_and_fix_context\nOutcome: ambiguous_needs_more_evidence\nComment count: 1\nLinked commit count: 1\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 5\nLabels: {'deployment_env_gap': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'docs_or_claims': 3, 'test_or_ci': 1, 'source_or_other': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-c9ac7128eabab44d\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"deployment_env_gap\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/3\",\n    \"text\": \"GitHub feedback: deployment_env_gap\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/3\\nTitle: v1.4-ingest: document ingestion proven, documented, gated\\nBody:\\nBrief B package per Build Phase 2. Sandbox-proven (3 formats, zero impact on existing memories, retrieval hits #1) + live smoke ingested and retrieved through the production connector. DOCX stays excluded (cloud-parse). \\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-dbee57d37c43ffa7\",\n    \"filename\": \"README.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"modified\",\n    \"additions\": 33,\n    \"deletions\": 0,\n    \"changes\": 33,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/8343d71d8497eda99e05b026bfcfac95bcc55b00/README.md\"\n  },\n  {\n    \"id\": \"github-pr-file-file-3e06a7fce39546e2\",\n    \"filename\": \"update/RUNBOOK-v1.4.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"modified\",\n    \"additions\": 36,\n    \"deletions\": 0,\n    \"changes\": 36,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/8343d71d8497eda99e05b026bfcfac95bcc55b00/update%2FRUNBOOK-v1.4.md\"\n  },\n  {\n    \"id\": \"github-pr-file-file-d875b811988f7fca\",\n    \"filename\": \"update/UPDATE_NOTES.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"modified\",\n    \"additions\": 27,\n    \"deletions\": 0,\n    \"changes\": 27,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/8343d71d8497eda99e05b026bfcfac95bcc55b00/update%2FUPDATE_NOTES.md\"\n  },\n  {\n    \"id\": \"github-pr-file-file-fa8002799b31d0ad\",\n    \"filename\": \"update/tools/tests/test_verify.py\",\n    \"label\": \"test_or_ci\",\n    \"status\": \"modified\",\n    \"additions\": 33,\n    \"deletions\": 0,\n    \"changes\": 33,\n    \"blob_url\": \"https://github\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-assumption_checks-619484573f1f9e51", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 300875, "scanner": "foundry_dataset", "fingerprint": "9308e9e7c3ca72ba58f69d099ef2f76fd730608b5082a327dfe3983c4d60cc82", "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": "StanleyAIbrain/stanley-install#11", "human_labels": ["docs_or_claims", "security_auth_secret", "source_or_other"], "issue_number": "11", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.795, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-313dbaa0cc82f176", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 3, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"docs_or_claims": 2, "source_or_other": 1}, "linked_commit_count": 4, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_weak_supervision", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#11\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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#11\nRepo: StanleyAIbrain/stanley-install\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 4\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 3\nLabels: {'security_auth_secret': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'docs_or_claims': 2, 'source_or_other': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-f462e7d1962fb7c4\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/11\",\n    \"text\": \"GitHub feedback: security_auth_secret\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/11\\nTitle: harden(v1.5.5): watchdog reaps untracked port-holding orphans before kickstart\\nBody:\\n## Why\\nv1.5.4's watchdog cannot recover when an **untracked** process holds the brain's port: every `kickstart` spawns an instance that bind-fails, producing an eternal FIX-FAILED loop. This encodes the manual rescue (reap the orphan, then kick) so recovery stays unattended.\\n\\n## What\\n- `update/reliability/brain-watchdog.sh`: `reap_orphans()` runs before every kickstart. It kills **only** listeners on `$PORT` that launchd does **not** track **and** whose command matches `$PROCSIG` (default `memory server --http`). A mismatched port-holder is logged as a WARNING and never killed. New config: `WD_PORT`, `WD_PROCSIG`.\\n- RUNBOOK self-heal section \u2192 v1.5.5, with an explicit **install from v1.5.5, not v1.5.4** note.\\n- `reliability/README.md` updated to match.\\n\\n## Proof (sandbox, never live)\\n- **Orphan scenario:** untracked signature-matching blocker on the sandbox port \u2192 REAPED (SIGTERM sufficed) \"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-c178dfef8766cbdc\",\n    \"filename\": \"update/RUNBOOK-v1.4.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"modified\",\n    \"additions\": 11,\n    \"deletions\": 1,\n    \"changes\": 12,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/c7e0171f23ab297c108683d2028aa1660cd697c5/update%2FRUNBOOK-v1.4.md\"\n  },\n  {\n    \"id\": \"github-pr-file-file-5a39a63c442e35f0\",\n    \"filename\": \"update/reliability/README.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"modified\",\n    \"additions\": 5,\n    \"deletions\": 2,\n    \"changes\": 7,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/c7e0171f23ab\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-assumption_checks-cb64b630032943fb", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 300874, "scanner": "foundry_dataset", "fingerprint": "0d2398918bf32306cedf70597a76c895333d744a2650a04b592a1184e58d9b23", "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": "StanleyAIbrain/stanley-install#10", "human_labels": ["docs_or_claims", "security_auth_secret", "source_or_other", "ui_or_frontend"], "issue_number": "10", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.65, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-08b01826aa4efbef", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 6, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"docs_or_claims": 2, "ui_or_frontend": 1, "source_or_other": 3}, "linked_commit_count": 4, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_weak_supervision", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#10\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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#10\nRepo: StanleyAIbrain/stanley-install\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 4\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 6\nLabels: {'security_auth_secret': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'docs_or_claims': 2, 'source_or_other': 3, 'ui_or_frontend': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-b0b9c9dda9ccddab\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/10\",\n    \"text\": \"GitHub feedback: security_auth_secret\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/10\\nTitle: reliability bundle (v1.5.4): self-heal watchdog + safe restart + liveness Worker\\nBody:\\nCloses the launchd-degraded gap that caused a live outage. Operator-generic, no secrets/hostnames/personal paths.\\n\\n- **brain-watchdog.sh** \u2014 cron health check; kickstart + ONE Telegram on down. Silent otherwise.\\n- **brain-restart.sh** \u2014 safe stop/start/restart; never exits 0 without verified local 200.\\n- **liveness-worker/** \u2014 Cloudflare Worker TEMPLATE (operator's own account/hostname/secrets); >=4min escalation only.\\n- RUNBOOK reliability section + README.\\n\\nps-leak fixed: token via curl -K fd (verified absent from `ps` argv). No engine change (10.26.5). No live brain touched. Both scans clean.\\n\\n\ud83e\udd16 Generated with [Claude Code](https://claude.com/claude-code)\\nEOF\\n)\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-55f7f18b27389671\",\n    \"filename\": \"update/RUNBOOK-v1.4.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"modified\",\n    \"additions\": 73,\n    \"deletions\": 0,\n    \"changes\": 73,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/5f0a43defb1ba542c91db2c9d1e84e1e93b6a72a/update%2FRUNBOOK-v1.4.md\"\n  },\n  {\n    \"id\": \"github-pr-file-file-bf5639fe48611e46\",\n    \"filename\": \"update/reliability/README.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"added\",\n    \"additions\": 36,\n    \"deletions\": 0,\n    \"changes\": 36,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/5f0a43defb1ba542c91db2c9d1e84e1e93b6a72a/update%2Freliability%2FREADME.md\"\n  },\n  {\n    \"id\": \"github-pr-file-file-70dd9a6f943ddd55\",\n    \"filename\": \"update/reliability/brain-restart.sh\",\n    \"label\": \"source_or_other\"\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-assumption_checks-4fe1890a2bfc9742", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_docs_only_fix", "level": "error", "message": {"text": "Foundry mined docs only runtime fix: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 358127, "scanner": "foundry_dataset", "fingerprint": "be3152f9cead1685f3718c6b1c2c4f9754798687c4e2f6b0a3db2e477215ca0a", "category": "practices", "severity": "high", "confidence": 0.8, "triageState": "open", "verdict": "confirmed", "isResolved": false, "reason": "Imported from mined Foundry/Fable5 evidence with real GitHub/source provenance. Review source_id before acting.", "evidence": {"meta": {"kind": "graph_query_record", "title": "Docs-only response to runtime or integration issue", "intent": "Assumption-check examples where docs or claims are not enough proof.", "labels": {"bug_fix": 3, "docs_or_claims": 2, "security_auth_secret": 1, "claimed_resolved_unverified": 3, "issue_or_pull_request_thread": 1, "human_reported_issue_then_fix_attempt": 1, "thread_has_human_issue_and_fix_context": 2}, "source": "graph_query_export", "motif_id": "docs_only_runtime_fix", "outcomes": {"claimed_resolved_unverified": 6}, "polarity": "bad", "query_id": "docs_only_runtime_fix", "severity": "high", "ci_labels": {}, "synthetic": false, "edge_count": 20, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 2, "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": 3, "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": 3, "thread": 1, "comment": 1, "pr_file": 2, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#9", "issue_number": "9", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-c467abc2ca56c4b6", "graph_gold_label": "weak_supervision_needs_review", "changed_file_labels": {"docs_or_claims": 8}}, "text": "Graph query export: Docs-only response to runtime or integration issue\nQuery id: docs_only_runtime_fix\nQuery type: motif_query\nIntent: Assumption-check examples where docs or claims are not enough proof.\nMotif: docs_only_runtime_fix\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#9\nEvidence:\nGraph motif: Runtime/integration complaint answered mostly with docs or claims\nMotif id: docs_only_runtime_fix\nPolarity: bad\nTraining usage: assumption_check\nSeverity: high\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#9\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#9\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 9\nGraph consistency label: weak_supervision_needs_review\nNodes: 14\nEdges: 20\nNode types: {'commit': 3, 'link_quality': 3, 'pr_file': 2, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'comment_chain_links_commit': 3, 'chain_has_link_quality': 3, 'thread_touches_file': 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, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'bug_fix': 3, 'claimed_resolved_unverified': 3, 'docs_or_claims': 2, '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}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 3}\nCI labels: {}\nCurriculum targets:\n- Train models to reject docs-only fixes for runtime, integration, data, or security failures.\n- Add paired examples where the correct fix changes executable paths and adds verification.\nAssumption checks:\n- Do changed files include executable code or only documentation/claims?\n- Does the complaint require runtime behavior that docs cannot prove?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-d3bd31c207b1e0a9", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/docs_only_runtime_fix/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "StanleyAIbrain/stanley-install", "source_dataset": "graph_queries/docs_only_runtime_fix", "training_usage": "assumption_check"}}}, {"ruleId": "foundry_docs_only_fix", "level": "error", "message": {"text": "Foundry mined docs only runtime fix: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 358126, "scanner": "foundry_dataset", "fingerprint": "da41427f07ba46a757a9a0adf0115cf7271c9b60af8276b24aa830a6f8f1a4e8", "category": "practices", "severity": "high", "confidence": 0.8, "triageState": "open", "verdict": "confirmed", "isResolved": false, "reason": "Imported from mined Foundry/Fable5 evidence with real GitHub/source provenance. Review source_id before acting.", "evidence": {"meta": {"kind": "graph_query_record", "title": "Docs-only response to runtime or integration issue", "intent": "Assumption-check examples where docs or claims are not enough proof.", "labels": {"bug_fix": 4, "api_or_backend": 1, "docs_or_claims": 3, "security_auth_secret": 1, "claimed_resolved_unverified": 3, "issue_or_pull_request_thread": 1, "human_reported_issue_then_fix_attempt": 1, "thread_has_human_issue_and_fix_context": 2}, "source": "graph_query_export", "motif_id": "docs_only_runtime_fix", "outcomes": {"claimed_resolved_unverified": 6}, "polarity": "bad", "query_id": "docs_only_runtime_fix", "severity": "high", "ci_labels": {}, "synthetic": false, "edge_count": 27, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 4, "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": 4, "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": 4, "thread": 1, "comment": 1, "pr_file": 4, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#8", "issue_number": "8", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-5a588755f3eda632", "graph_gold_label": "weak_supervision_needs_review", "changed_file_labels": {"api_or_backend": 4, "docs_or_claims": 12}}, "text": "Graph query export: Docs-only response to runtime or integration issue\nQuery id: docs_only_runtime_fix\nQuery type: motif_query\nIntent: Assumption-check examples where docs or claims are not enough proof.\nMotif: docs_only_runtime_fix\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#8\nEvidence:\nGraph motif: Runtime/integration complaint answered mostly with docs or claims\nMotif id: docs_only_runtime_fix\nPolarity: bad\nTraining usage: assumption_check\nSeverity: high\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#8\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#8\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 8\nGraph consistency label: weak_supervision_needs_review\nNodes: 17\nEdges: 27\nNode types: {'pr_file': 4, 'commit': 4, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 4, 'comment_chain_links_commit': 4, 'comment_chain_touches_file': 4, 'issue_chain_touches_file': 4, 'chain_has_link_quality': 3, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'bug_fix': 4, 'docs_or_claims': 3, 'claimed_resolved_unverified': 3, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'security_auth_secret': 1, 'api_or_backend': 1, 'human_reported_issue_then_fix_attempt': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 3}\nCI labels: {}\nCurriculum targets:\n- Train models to reject docs-only fixes for runtime, integration, data, or security failures.\n- Add paired examples where the correct fix changes executable paths and adds verification.\nAssumption checks:\n- Do changed files include executable code or only documentation/claims?\n- Does the complaint require runtime behavior that docs cannot prove?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-a4cb2ed41ec1af51", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/docs_only_runtime_fix/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "StanleyAIbrain/stanley-install", "source_dataset": "graph_queries/docs_only_runtime_fix", "training_usage": "assumption_check"}}}, {"ruleId": "foundry_docs_only_fix", "level": "error", "message": {"text": "Foundry mined docs only runtime fix: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 358125, "scanner": "foundry_dataset", "fingerprint": "24d7e540e3c30c80c2b4b47a38f8fc635d1ff270153ba34d1882ed61e039019b", "category": "practices", "severity": "high", "confidence": 0.8, "triageState": "open", "verdict": "confirmed", "isResolved": false, "reason": "Imported from mined Foundry/Fable5 evidence with real GitHub/source provenance. Review source_id before acting.", "evidence": {"meta": {"kind": "graph_query_record", "title": "Docs-only response to runtime or integration issue", "intent": "Assumption-check examples where docs or claims are not enough proof.", "labels": {"bug_fix": 3, "commit_general": 1, "docs_or_claims": 2, "source_or_other": 1, "security_auth_secret": 1, "claimed_resolved_unverified": 3, "issue_or_pull_request_thread": 1, "human_reported_issue_then_fix_attempt": 1, "thread_has_human_issue_and_fix_context": 2}, "source": "graph_query_export", "motif_id": "docs_only_runtime_fix", "outcomes": {"claimed_resolved_unverified": 6}, "polarity": "bad", "query_id": "docs_only_runtime_fix", "severity": "high", "ci_labels": {}, "synthetic": false, "edge_count": 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": "StanleyAIbrain/stanley-install#11", "issue_number": "11", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-7836a7e82c321ebc", "graph_gold_label": "weak_supervision_needs_review", "changed_file_labels": {"docs_or_claims": 8, "source_or_other": 4}}, "text": "Graph query export: Docs-only response to runtime or integration issue\nQuery id: docs_only_runtime_fix\nQuery type: motif_query\nIntent: Assumption-check examples where docs or claims are not enough proof.\nMotif: docs_only_runtime_fix\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#11\nEvidence:\nGraph motif: Runtime/integration complaint answered mostly with docs or claims\nMotif id: docs_only_runtime_fix\nPolarity: bad\nTraining usage: assumption_check\nSeverity: high\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#11\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#11\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 11\nGraph consistency label: weak_supervision_needs_review\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: {'bug_fix': 3, 'claimed_resolved_unverified': 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_fix_attempt': 1, 'commit_general': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 3}\nCI labels: {}\nCurriculum targets:\n- Train models to reject docs-only fixes for runtime, integration, data, or security failures.\n- Add paired examples where the correct fix changes executable paths and adds verification.\nAssumption checks:\n- Do changed files include executable code or only documentation/claims?\n- Does the complaint require runtime behavior that docs cannot prove?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-be9c21504452e04b", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/docs_only_runtime_fix/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "StanleyAIbrain/stanley-install", "source_dataset": "graph_queries/docs_only_runtime_fix", "training_usage": "assumption_check"}}}, {"ruleId": "foundry_test_ci_gap", "level": "error", "message": {"text": "Foundry mined test ci gap after feedback: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 336688, "scanner": "foundry_dataset", "fingerprint": "bc92aff0d51d2937a5b323c94807370543d775b1fc8cd9972b988b951ce13d45", "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": 1, "test_or_ci": 3, "test_ci_gap": 1, "source_or_other": 3, "verification_or_tests": 4, "mostly follows blueprint": 1, "issue_or_pull_request_thread": 1, "blueprint_human_gap_disagreement": 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": "test_ci_gap_after_feedback", "outcomes": {"claimed_resolved_with_verification_signal": 6}, "polarity": "bad", "query_id": "test_ci_gap_after_feedback", "severity": "high", "ci_labels": {}, "synthetic": false, "edge_count": 38, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 6, "alignment_uses_comment": 1, "alignment_uses_finding": 1, "chain_has_link_quality": 4, "comment_aligns_finding": 1, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 6, "thread_has_comment_chain": 1, "comment_chain_links_commit": 5, "comment_chain_touches_file": 6, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 23, "node_types": {"repo": 1, "commit": 5, "thread": 1, "comment": 1, "pr_file": 6, "alignment": 1, "fix_outcome": 1, "issue_chain": 1, "link_quality": 4, "comment_chain": 1, "blueprint_finding": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#1", "issue_number": "1", "quality_tiers": {"high_confidence": 3, "assumption_check": 1}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "hard_negative", "source_motif_id": "graph-pattern-motif-thread-8cf63e182fab6d02", "graph_gold_label": "supported_by_verification_signal", "changed_file_labels": {"test_or_ci": 12, "source_or_other": 12}}, "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_verification_signal\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#1\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: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#1\nGraph gold label: supported_by_verification_signal\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#1\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 1\nGraph consistency label: supported_by_verification_signal\nNodes: 23\nEdges: 38\nNode types: {'pr_file': 6, 'commit': 5, 'link_quality': 4, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1, 'alignment': 1, 'blueprint_finding': 1}\nEdge types: {'thread_touches_file': 6, 'comment_chain_touches_file': 6, 'issue_chain_touches_file': 6, 'comment_chain_links_commit': 5, 'chain_has_link_quality': 4, '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, 'alignment_uses_comment': 1, 'alignment_uses_finding': 1, 'comment_aligns_finding': 1}\nLabels: {'verification_or_tests': 4, 'test_or_ci': 3, 'source_or_other': 3, 'claimed_resolved_with_verification_signal': 3, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'test_ci_gap': 1, 'human_reported_issue_then_verified_fix_attempt': 1, 'bug_fix': 1, 'blueprint_human_gap_disagreement': 1, 'mostly follows blueprint': 1}\nOutcomes: {'claimed_resolved_with_verification_signal': 6}\nQuality tiers: {'high_confidence': 3, 'assumption_check': 1}\nCI labels: {}\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/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-0c0946355f7cfeb2", "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": "StanleyAIbrain/stanley-install", "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: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 316405, "scanner": "foundry_dataset", "fingerprint": "f2268596046e94188b6f3206414501fbdd2e783fe4664103e466a9d85edf68f0", "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": "StanleyAIbrain/stanley-install#7", "human_labels": ["docs_or_claims", "mock_placeholder"], "issue_number": "7", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.625, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-62eb44339989e934", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 1, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"docs_or_claims": 1}, "linked_commit_count": 2, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_weak_supervision", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: bad_chains\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#7\nRepo: StanleyAIbrain/stanley-install\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: 1\nLabels: {'mock_placeholder': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'docs_or_claims': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-0e6c12f65a75dc83\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"mock_placeholder\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/7\",\n    \"text\": \"GitHub feedback: mock_placeholder\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/7\\nTitle: docs: Everest v1.5.0 mega-guide for existing islands\\nBody:\\nSingle self-contained upgrade+verify guide for an existing Everest island, targeting tag v1.5.0 (75c7c23). Folds install (cognition + ingestion) + security hardening (documents app-layer auth, CORS, header-only) + parity confirm into one gated, confirm-back doc. Isolation scan clean (placeholders only, zero owner/host/key/data). Doc-only \u2014 no code change, no new tag.\\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-0a5d08a9e7f8e0db\",\n    \"filename\": \"update/EVEREST-v1.5.0-MEGA-GUIDE.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"added\",\n    \"additions\": 163,\n    \"deletions\": 0,\n    \"changes\": 163,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/0121ebe30acd0c5dab6be0633950a17b0f629307/update%2FEVEREST-v1.5.0-MEGA-GUIDE.md\"\n  }\n]\nLinked chain ids:\n[\"evidence-chain-comment_to_commit-e5130aef7275cf5d\"]\nSource graph evidence:\nSource evidence repo graph summary\nRepo: StanleyAIbrain/stanley-install\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_summary\": 1, \"repo_has_source_artifact\": 1, \"repo_has_source_bundle\": 1, \"source_bundle_uses_cooccurrence_profile\": 1}\nArtifact families: {\"docs\": 1}\nHelicopter views: {}\nBundle labels: {\"source_backed_security_guardrail_bundle\": 1}\nCo-occurrence labels: {\"fake_real_data_plus_verification_gap\": 1}", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-bad_chains-6b865fa0d28549d2", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/bad_chains", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_bad_chain", "level": "error", "message": {"text": "Foundry mined bad chains: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 316404, "scanner": "foundry_dataset", "fingerprint": "9f83f6b2f5bff6b4cf42e9ae464efdda8bcae8d97adf891d9025d2dd7b94dabd", "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": "StanleyAIbrain/stanley-install#2", "human_labels": ["agent_instruction_gap", "api_or_backend", "docs_or_claims", "source_or_other", "test_or_ci"], "issue_number": "2", "thread_label": "thread_has_human_issue_without_fix_context", "outcome_label": "not_resolved_or_not_observed", "source_backed": true, "max_confidence": 0.0, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "negative_or_unresolved", "confidence_tier": "unresolved", "source_chain_id": "evidence-chain-issue_chain-97958029be9ebd2a", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 5, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"test_or_ci": 1, "api_or_backend": 1, "docs_or_claims": 2, "source_or_other": 1}, "linked_commit_count": 0, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_unresolved"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: bad_chains\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#2\nOutcome: not_resolved_or_not_observed\nThread label: thread_has_human_issue_without_fix_context\nSource graph label: source_artifact_without_verification_graph\nReasons: source_graph_has_real_artifacts, link_quality_unresolved\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#2\nRepo: StanleyAIbrain/stanley-install\nThread label: thread_has_human_issue_without_fix_context\nOutcome: not_resolved_or_not_observed\nComment count: 1\nLinked commit count: 0\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 5\nLabels: {'agent_instruction_gap': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'api_or_backend': 1, 'docs_or_claims': 2, 'test_or_ci': 1, 'source_or_other': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-e80beb268b87a41c\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"agent_instruction_gap\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/2\",\n    \"text\": \"GitHub feedback: agent_instruction_gap\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/2\\nTitle: v1.4-cognition: activate the consolidation engine (zero-deletion safety config)\\nBody:\\nShips cognition ON for the islands per Build Phase 2 Brief A4. Associations OFF (compounding retrievable-memory mint, measured ~870/run \u2014 see UPDATE_NOTES). Heartbeat gate added to verify.py. Operator runbook included. Sandbox-proven twice + live-activated on the founding instance with all gates green.\\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-f26a56a4de7c691e\",\n    \"filename\": \"templates/memory-server.sh.tmpl\",\n    \"label\": \"api_or_backend\",\n    \"status\": \"modified\",\n    \"additions\": 13,\n    \"deletions\": 0,\n    \"changes\": 13,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/0ed10e9dc52f89c11a89ddd53c53eccf5ec16e7d/templates%2Fmemory-server.sh.tmpl\"\n  },\n  {\n    \"id\": \"github-pr-file-file-19e882ee8f9473d3\",\n    \"filename\": \"update/RUNBOOK-v1.4.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"added\",\n    \"additions\": 87,\n    \"deletions\": 0,\n    \"changes\": 87,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/0ed10e9dc52f89c11a89ddd53c53eccf5ec16e7d/update%2FRUNBOOK-v1.4.md\"\n  },\n  {\n    \"id\": \"github-pr-file-file-ccee9090f45df415\",\n    \"filename\": \"update/UPDATE_NOTES.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"modified\",\n    \"additions\": 27,\n    \"deletions\": 0,\n    \"changes\": 27,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/0ed10e9dc52f89c11a89ddd53c53eccf5ec16e7d/update%2FUPDATE_NOTES.md\"\n  },\n  {\n    \"id\": \"github-pr-file-file-f3f48e158abd9f11\",\n    \"filename\": \"update/tools/tests/test_verify.py\",\n    \"\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-bad_chains-f755cdb9427c7147", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/bad_chains", "training_usage": "negative_or_unresolved"}}}, {"ruleId": "foundry_bad_chain", "level": "error", "message": {"text": "Foundry mined bad chains: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 316403, "scanner": "foundry_dataset", "fingerprint": "1cd7f44b254f297b39f221798f2e661e10bdedeab864f728c01c001253cbadb4", "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": "StanleyAIbrain/stanley-install#14", "human_labels": ["docs_or_claims", "mock_placeholder", "source_or_other"], "issue_number": "14", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.742, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-0d9f9ba308387522", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 3, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"docs_or_claims": 2, "source_or_other": 1}, "linked_commit_count": 4, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_weak_supervision", "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: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#14\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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#14\nRepo: StanleyAIbrain/stanley-install\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: 3\nLabels: {'mock_placeholder': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'docs_or_claims': 2, 'source_or_other': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-4f86258566dc44cb\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"mock_placeholder\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/14\",\n    \"text\": \"GitHub feedback: mock_placeholder\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/14\\nTitle: v1.5.7: redact API keys from the HTTP access log\\nBody:\\n## Single concern\\nThe access log wrote API keys in plaintext (connector requests pass the key as `?api_key=...` \u2014 Jordan finding #1). v1.5.7 masks `api_key`/`token`/`secret`/`password` values before they're written.\\n\\n## Safety spine\\nLog-output only. **Auth flow is byte-for-byte unchanged** \u2014 valid key still authenticates, invalid/missing still 401s; only the logged value changes. Engine source untouched (PYTHONPATH `sitecustomize` shim, not an engine edit). Engine stays pinned 10.26.5.\\n\\n## What\\n- `update/reliability/log-redact/sitecustomize.py` (new): a `logging.Filter` on the uvicorn access/error loggers, auto-installed at interpreter start. Exception-safe everywhere \u2014 worst failure is 'no redaction', never 'no serving'.\\n- RUNBOOK Step 5c + `docs/INSTALL-UPGRADE-v1.5.7.md` section 6c: one PYTHONPATH line in `memory-server.sh`, confirm, scrub history, `chmod 600`.\\n\\n## Proof (sandbox, scratch DB + scratch key, live brain unt\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-7325fc3cbb4191ce\",\n    \"filename\": \"docs/INSTALL-UPGRADE-v1.5.7.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"added\",\n    \"additions\": 277,\n    \"deletions\": 0,\n    \"changes\": 277,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/7c6eb16ca6000546ed336a5b005f615175547f6f/docs%2FINSTALL-UPGRADE-v1.5.7.md\"\n  },\n  {\n    \"id\": \"github-pr-file-file-c2b953b2f0b505df\",\n    \"filename\": \"update/RUNBOOK-v1.4.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"modified\",\n    \"additions\": 46,\n    \"deletions\": 4,\n    \"changes\": 50,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-bad_chains-ff2d6a366d36ff9c", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/bad_chains", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_bad_chain", "level": "error", "message": {"text": "Foundry mined bad chains: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 316402, "scanner": "foundry_dataset", "fingerprint": "d58092d36152452f90f9e4aad98e42118457926f9a918178c92215c095402c0e", "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": "StanleyAIbrain/stanley-install#13", "human_labels": ["docs_or_claims", "mock_placeholder", "source_or_other"], "issue_number": "13", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.812, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "gold_candidate", "confidence_tier": "high_confidence", "source_chain_id": "evidence-chain-issue_chain-3ea7a05a0a0b4742", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 5, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"docs_or_claims": 3, "source_or_other": 2}, "linked_commit_count": 5, "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: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#13\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: StanleyAIbrain/stanley-install#13\nRepo: StanleyAIbrain/stanley-install\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 5\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 5\nLabels: {'mock_placeholder': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'docs_or_claims': 3, 'source_or_other': 2}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-91500717cf67634d\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"mock_placeholder\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/13\",\n    \"text\": \"GitHub feedback: mock_placeholder\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/13\\nTitle: v1.5.6: tunnel hardening \u2014 silent auto-fixer + conditional http2 guidance\\nBody:\\n## What (delta over v1.5.5 \u2014 everything else carries forward)\\n- **`update/reliability/brain-tunnel-watchdog.sh` (new):** silent tunnel auto-fixer. Edge down 2 consecutive checks **while local is 200** \u2192 kickstart the cloudflared tunnel (bootstrap fallback), 10-min cooldown. **Never texts** (zero token code) \u2014 the off-box Worker remains the only loud layer. **Disabled until the operator sets `TW_EDGE_URL`** (safe default). Defers to the brain watchdog whenever local \u2260 200.\\n- **`brain-watchdog.sh`:** chains the tunnel check off the same crontab line \u2014 one scheduler entry drives both watchdogs.\\n- **RUNBOOK Step 5b + reliability README:** setup + conditional http2 guidance (only if the tunnel log shows repeated QUIC `timeout: no recent network activity`).\\n- **`docs/INSTALL-UPGRADE-v1.5.6.md`:** the single complete install guide \u2014 'install from v1.5.6 or later; you do not need v1.5.5 separately.'\\n\\n## Pro\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-be6a9fd4063d8a0e\",\n    \"filename\": \"docs/INSTALL-UPGRADE-v1.5.6.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"added\",\n    \"additions\": 231,\n    \"deletions\": 0,\n    \"changes\": 231,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/4dfdf9acb33ab43a65c5751da964cabf303cb17c/docs%2FINSTALL-UPGRADE-v1.5.6.md\"\n  },\n  {\n    \"id\": \"github-pr-file-file-0b3870cc1285139d\",\n    \"filename\": \"update/RUNBOOK-v1.4.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"modified\",\n    \"additions\": 31,\n    \"deletions\": 6,\n    \"changes\": 37,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/4dfdf9acb33ab43a65c5\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-bad_chains-571a720503a0d2b7", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/bad_chains", "training_usage": "gold_candidate"}}}, {"ruleId": "foundry_bad_chain", "level": "error", "message": {"text": "Foundry mined bad chains: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 316401, "scanner": "foundry_dataset", "fingerprint": "2352a038738f1a42214b5f6c1c8182e9d68cc07917eb7b6597326f4733a8125a", "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": "StanleyAIbrain/stanley-install#12", "human_labels": ["docs_or_claims", "mock_placeholder"], "issue_number": "12", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.795, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-d9eb2385d1cbd2cf", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 1, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"docs_or_claims": 1}, "linked_commit_count": 5, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_weak_supervision", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: bad_chains\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#12\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_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: StanleyAIbrain/stanley-install#12\nRepo: StanleyAIbrain/stanley-install\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 5\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 1\nLabels: {'mock_placeholder': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'docs_or_claims': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-3d890a69dceed431\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"mock_placeholder\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/StanleyAIbrain/stanley-install/pull/12\",\n    \"text\": \"GitHub feedback: mock_placeholder\\nPolarity: bad\\nKind: pull_request_body\\nRepo: StanleyAIbrain/stanley-install\\nAuthor: stanleyai-lab (User)\\nURL: https://github.com/StanleyAIbrain/stanley-install/pull/12\\nTitle: docs: INSTALL-UPGRADE-v1.5.5 \u2014 operator install guide (hardened self-heal capstone)\\nBody:\\nGeneric, public-safe operator guide for upgrading an existing identical-on-v1.5.2 install to **v1.5.5**.\\n\\n- Section 2: checkout `v1.5.5` with on-tag self-test\\n- Sections 3\u20134: cognition + ingestion health **confirms** (no re-install)\\n- Section 5: hardened self-heal \u2014 opens with **install from v1.5.5, NOT v1.5.4**; ghost-process (orphan) clearing explained operator-plain; creds-file token hygiene; safe restart tool; off-box liveness Worker\\n- Section 6: one-shot heal proof; Section 7: triage\\n\\nScans: 0 personal paths, 0 real hostnames, 0 secrets/token patterns, 0 placeholders. All operator-fills (`<INSTALL_DIR>`, `<PORT>`, `<your-bot-token>`\u2026). Doubles as the reusable customer install template.\\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-5e49284ee47d3e62\",\n    \"filename\": \"docs/INSTALL-UPGRADE-v1.5.5.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"added\",\n    \"additions\": 196,\n    \"deletions\": 0,\n    \"changes\": 196,\n    \"blob_url\": \"https://github.com/StanleyAIbrain/stanley-install/blob/2ab47ee2e0467252d8372fe3e87ee6e7ce3e4cf4/docs%2FINSTALL-UPGRADE-v1.5.5.md\"\n  }\n]\nLinked chain ids:\n[\"evidence-chain-comment_to_commit-db1c04ac21fa3014\"]\nSource graph evidence:\nSource evidence repo graph summary\nRepo: StanleyAIbrain/stanley-install\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_gi\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "comment-chain-pattern-bad_chains-e40c8fdc990f9e87", "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": "StanleyAIbrain/stanley-install", "source_dataset": "comment_chain_patterns/bad_chains", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_auth_guardrail_gap", "level": "error", "message": {"text": "Foundry mined security auth guardrail gaps: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 332146, "scanner": "foundry_dataset", "fingerprint": "f26deb0c3477d4111a7eeee1ceb9e82ca6a0953a0057e10871bbeeaad8470940", "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": 2, "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": 20, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 2, "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": 3, "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": 3, "thread": 1, "comment": 1, "pr_file": 2, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#9", "issue_number": "9", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-857d9ae4cb2a2a61", "graph_gold_label": "weak_supervision_needs_review", "changed_file_labels": {"docs_or_claims": 8}}, "text": "Graph query export: Security/auth changes without enough guardrails\nQuery id: security_auth_guardrail_gaps\nQuery type: motif_query\nIntent: Assumption-check security/auth examples requiring stronger tests or CI.\nMotif: security_auth_without_guardrails\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#9\nEvidence:\nGraph motif: Security/auth change without enough guardrails\nMotif id: security_auth_without_guardrails\nPolarity: bad\nTraining usage: assumption_check\nSeverity: critical\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#9\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#9\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 9\nGraph consistency label: weak_supervision_needs_review\nNodes: 14\nEdges: 20\nNode types: {'commit': 3, 'link_quality': 3, 'pr_file': 2, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'comment_chain_links_commit': 3, 'chain_has_link_quality': 3, 'thread_touches_file': 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, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'bug_fix': 3, 'claimed_resolved_unverified': 3, 'docs_or_claims': 2, '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}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 3}\nCI labels: {}\nCurriculum targets:\n- Train auth boundary repair with tests, permission matrices, and secret-handling checks.\n- Keep risky auth changes separate from ordinary bug-fix examples.\nAssumption checks:\n- Are auth/permission paths covered by tests?\n- Are secrets, CORS, or access rules verified rather than summarized?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-032a4bafa11eb98c", "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": "StanleyAIbrain/stanley-install", "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: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 332145, "scanner": "foundry_dataset", "fingerprint": "42831a8eee21b82d595b526459f5b5b404b0c3e52a6dceab660c49da5449f83b", "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": 4, "api_or_backend": 1, "docs_or_claims": 3, "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": 27, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 4, "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": 4, "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": 4, "thread": 1, "comment": 1, "pr_file": 4, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#8", "issue_number": "8", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-a608e971cc3cc9fb", "graph_gold_label": "weak_supervision_needs_review", "changed_file_labels": {"api_or_backend": 4, "docs_or_claims": 12}}, "text": "Graph query export: Security/auth changes without enough guardrails\nQuery id: security_auth_guardrail_gaps\nQuery type: motif_query\nIntent: Assumption-check security/auth examples requiring stronger tests or CI.\nMotif: security_auth_without_guardrails\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#8\nEvidence:\nGraph motif: Security/auth change without enough guardrails\nMotif id: security_auth_without_guardrails\nPolarity: bad\nTraining usage: assumption_check\nSeverity: critical\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#8\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#8\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 8\nGraph consistency label: weak_supervision_needs_review\nNodes: 17\nEdges: 27\nNode types: {'pr_file': 4, 'commit': 4, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 4, 'comment_chain_links_commit': 4, 'comment_chain_touches_file': 4, 'issue_chain_touches_file': 4, 'chain_has_link_quality': 3, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'bug_fix': 4, 'docs_or_claims': 3, 'claimed_resolved_unverified': 3, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'security_auth_secret': 1, 'api_or_backend': 1, 'human_reported_issue_then_fix_attempt': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 3}\nCI labels: {}\nCurriculum targets:\n- Train auth boundary repair with tests, permission matrices, and secret-handling checks.\n- Keep risky auth changes separate from ordinary bug-fix examples.\nAssumption checks:\n- Are auth/permission paths covered by tests?\n- Are secrets, CORS, or access rules verified rather than summarized?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-073bdc6e503072af", "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": "StanleyAIbrain/stanley-install", "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: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 332144, "scanner": "foundry_dataset", "fingerprint": "d5a6716d6ccb59c507ffdfcea49ae8bf52a80a263928fa621af9876df3ad3827", "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, "commit_general": 1, "docs_or_claims": 2, "source_or_other": 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": 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": "StanleyAIbrain/stanley-install#11", "issue_number": "11", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-1b08efe86aaedf96", "graph_gold_label": "weak_supervision_needs_review", "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: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#11\nEvidence:\nGraph motif: Security/auth change without enough guardrails\nMotif id: security_auth_without_guardrails\nPolarity: bad\nTraining usage: assumption_check\nSeverity: critical\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#11\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#11\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 11\nGraph consistency label: weak_supervision_needs_review\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: {'bug_fix': 3, 'claimed_resolved_unverified': 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_fix_attempt': 1, 'commit_general': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 3}\nCI labels: {}\nCurriculum targets:\n- Train auth boundary repair with tests, permission matrices, and secret-handling checks.\n- Keep risky auth changes separate from ordinary bug-fix examples.\nAssumption checks:\n- Are auth/permission paths covered by tests?\n- Are secrets, CORS, or access rules verified rather than summarized?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-e8244a3e2735a9fa", "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": "StanleyAIbrain/stanley-install", "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: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 332143, "scanner": "foundry_dataset", "fingerprint": "e7c408898261b623c90d45c10bad95c439aac6c090b1c37242e2f814f3e9a4f3", "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": 4, "docs_or_claims": 2, "ui_or_frontend": 1, "source_or_other": 3, "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": 33, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 6, "chain_has_link_quality": 3, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 6, "thread_has_comment_chain": 1, "comment_chain_links_commit": 4, "comment_chain_touches_file": 6, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 19, "node_types": {"repo": 1, "commit": 4, "thread": 1, "comment": 1, "pr_file": 6, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#10", "issue_number": "10", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-5a79270231feb62d", "graph_gold_label": "weak_supervision_needs_review", "changed_file_labels": {"docs_or_claims": 8, "ui_or_frontend": 4, "source_or_other": 12}}, "text": "Graph query export: Security/auth changes without enough guardrails\nQuery id: security_auth_guardrail_gaps\nQuery type: motif_query\nIntent: Assumption-check security/auth examples requiring stronger tests or CI.\nMotif: security_auth_without_guardrails\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#10\nEvidence:\nGraph motif: Security/auth change without enough guardrails\nMotif id: security_auth_without_guardrails\nPolarity: bad\nTraining usage: assumption_check\nSeverity: critical\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#10\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#10\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 10\nGraph consistency label: weak_supervision_needs_review\nNodes: 19\nEdges: 33\nNode types: {'pr_file': 6, 'commit': 4, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 6, 'comment_chain_touches_file': 6, 'issue_chain_touches_file': 6, '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, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'bug_fix': 4, 'source_or_other': 3, 'claimed_resolved_unverified': 3, 'docs_or_claims': 2, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'security_auth_secret': 1, 'ui_or_frontend': 1, 'human_reported_issue_then_fix_attempt': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 3}\nCI labels: {}\nCurriculum targets:\n- Train auth boundary repair with tests, permission matrices, and secret-handling checks.\n- Keep risky auth changes separate from ordinary bug-fix examples.\nAssumption checks:\n- Are auth/permission paths covered by tests?\n- Are secrets, CORS, or access rules verified rather than summarized?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-b92912f2940eea03", "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": "StanleyAIbrain/stanley-install", "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: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 324886, "scanner": "foundry_dataset", "fingerprint": "41048f618569782a5df2e8b2f4ad3da8c41b2c4aea5005ff5de709bd35506575", "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": 2, "docs_or_claims": 1, "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": 16, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 1, "chain_has_link_quality": 3, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 1, "thread_has_comment_chain": 1, "comment_chain_links_commit": 2, "comment_chain_touches_file": 1, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 12, "node_types": {"repo": 1, "commit": 2, "thread": 1, "comment": 1, "pr_file": 1, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#7", "issue_number": "7", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "hard_negative", "source_motif_id": "graph-pattern-motif-thread-41da9851006d5f51", "graph_gold_label": "weak_supervision_needs_review", "changed_file_labels": {"docs_or_claims": 4}}, "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: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#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: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#7\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#7\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 7\nGraph consistency label: weak_supervision_needs_review\nNodes: 12\nEdges: 16\nNode types: {'link_quality': 3, 'commit': 2, 'thread': 1, 'repo': 1, 'comment': 1, 'pr_file': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'chain_has_link_quality': 3, 'comment_chain_links_commit': 2, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_touches_file': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'comment_chain_touches_file': 1, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'issue_chain_touches_file': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'claimed_resolved_unverified': 3, 'bug_fix': 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}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 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/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-e0f1a5e72f1aa86c", "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": "StanleyAIbrain/stanley-install", "source_dataset": "graph_queries/mock_as_real_or_placeholder", "training_usage": "hard_negative"}}}, {"ruleId": "foundry_fake_real_gap", "level": "error", "message": {"text": "Foundry mined mock as real or placeholder: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 324885, "scanner": "foundry_dataset", "fingerprint": "5e5bcc0b030d9d6573bf73abd7592055edcdd8d49bf4c8d805162105e76ed80f", "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, "commit_general": 1, "docs_or_claims": 2, "source_or_other": 1, "mock_placeholder": 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": 25, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 3, "comment_chain_has_ci": 1, "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": 17, "node_types": {"repo": 1, "commit": 4, "thread": 1, "comment": 1, "pr_file": 3, "ci_summary": 1, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#14", "issue_number": "14", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "hard_negative", "source_motif_id": "graph-pattern-motif-thread-df4dd6682e473430", "graph_gold_label": "weak_supervision_needs_review", "changed_file_labels": {"docs_or_claims": 8, "source_or_other": 4}}, "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: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#14\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: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#14\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#14\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 14\nGraph consistency label: weak_supervision_needs_review\nNodes: 17\nEdges: 25\nNode types: {'commit': 4, 'pr_file': 3, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'ci_summary': 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, '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: {'bug_fix': 3, 'claimed_resolved_unverified': 3, 'docs_or_claims': 2, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'mock_placeholder': 1, 'source_or_other': 1, 'human_reported_issue_then_fix_attempt': 1, 'commit_general': 1, 'ci_pending_or_incomplete': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 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/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-0056d2bf7ddd8ad6", "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": "StanleyAIbrain/stanley-install", "source_dataset": "graph_queries/mock_as_real_or_placeholder", "training_usage": "hard_negative"}}}, {"ruleId": "foundry_fake_real_gap", "level": "error", "message": {"text": "Foundry mined mock as real or placeholder: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 324884, "scanner": "foundry_dataset", "fingerprint": "b63548838bf2ec251d61d05029d6b2b7d931ad664ec2de050ead544e58b90a6f", "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": 4, "commit_general": 1, "docs_or_claims": 3, "source_or_other": 2, "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": 31, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 5, "chain_has_link_quality": 3, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 5, "thread_has_comment_chain": 1, "comment_chain_links_commit": 5, "comment_chain_touches_file": 5, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 19, "node_types": {"repo": 1, "commit": 5, "thread": 1, "comment": 1, "pr_file": 5, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#13", "issue_number": "13", "quality_tiers": {"high_confidence": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "hard_negative", "source_motif_id": "graph-pattern-motif-thread-bf378c68080510b4", "graph_gold_label": "supported_by_high_confidence_link", "changed_file_labels": {"docs_or_claims": 12, "source_or_other": 8}}, "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: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#13\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: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#13\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#13\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 13\nGraph consistency label: supported_by_high_confidence_link\nNodes: 19\nEdges: 31\nNode types: {'pr_file': 5, 'commit': 5, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 5, 'comment_chain_links_commit': 5, 'comment_chain_touches_file': 5, 'issue_chain_touches_file': 5, 'chain_has_link_quality': 3, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'bug_fix': 4, 'docs_or_claims': 3, 'claimed_resolved_unverified': 3, 'source_or_other': 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, 'commit_general': 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/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-bf02366219ed275b", "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": "StanleyAIbrain/stanley-install", "source_dataset": "graph_queries/mock_as_real_or_placeholder", "training_usage": "hard_negative"}}}, {"ruleId": "foundry_fake_real_gap", "level": "error", "message": {"text": "Foundry mined mock as real or placeholder: StanleyAIbrain/stanley-install"}, "properties": {"repobilityId": 324883, "scanner": "foundry_dataset", "fingerprint": "68e524c8bcc7beca834d30fdbf545c62b9b8bc6d52916f3f9e064f49b1a1b6d2", "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": 4, "docs_or_chore": 1, "docs_or_claims": 1, "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": 19, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 1, "chain_has_link_quality": 3, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 1, "thread_has_comment_chain": 1, "comment_chain_links_commit": 5, "comment_chain_touches_file": 1, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 15, "node_types": {"repo": 1, "commit": 5, "thread": 1, "comment": 1, "pr_file": 1, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "StanleyAIbrain/stanley-install#12", "issue_number": "12", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "StanleyAIbrain/stanley-install", "training_usage": "hard_negative", "source_motif_id": "graph-pattern-motif-thread-724284ce753882ad", "graph_gold_label": "weak_supervision_needs_review", "changed_file_labels": {"docs_or_claims": 4}}, "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: weak_supervision_needs_review\nRepo: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#12\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: StanleyAIbrain/stanley-install\nThread: StanleyAIbrain/stanley-install#12\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: StanleyAIbrain/stanley-install#12\nRepo: StanleyAIbrain/stanley-install\nIssue/PR number: 12\nGraph consistency label: weak_supervision_needs_review\nNodes: 15\nEdges: 19\nNode types: {'commit': 5, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'pr_file': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'comment_chain_links_commit': 5, 'chain_has_link_quality': 3, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_touches_file': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'comment_chain_touches_file': 1, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'issue_chain_touches_file': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'bug_fix': 4, 'claimed_resolved_unverified': 3, '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, 'docs_or_chore': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 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/StanleyAIbrain/stanley-install", "source_id": "graph-query-motif_query-1322898fa122c7fe", "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": "StanleyAIbrain/stanley-install", "source_dataset": "graph_queries/mock_as_real_or_placeholder", "training_usage": "hard_negative"}}}, {"ruleId": "scanner-ab2f5f919011fe82", "level": "note", "message": {"text": "Possibly dead Python function: filter"}, "properties": {"repobilityId": "7da968b6f6ed2422", "scanner": "scanner-primary", "fingerprint": "ab2f5f919011fe82", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "update/reliability/log-redact/sitecustomize.py:36"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-bead75b0f9233e05", "level": "none", "message": {"text": "No API endpoints detected"}, "properties": {"repobilityId": "0f8bb852027c38f8", "scanner": "scanner-primary", "fingerprint": "bead75b0f9233e05", "layer": "api", "severity": "info", "confidence": 1.0, "tags": ["coverage"]}}, {"ruleId": "scanner-fc7540b0cf128c2a", "level": "note", "message": {"text": "Stray `console.log` in TS/JS \u2014 update/reliability/liveness-worker/src/index.js:25"}, "properties": {"repobilityId": "32b81ecb091b9599", "scanner": "scanner-primary", "fingerprint": "fc7540b0cf128c2a", "layer": "frontend", "severity": "low", "confidence": 1.0, "tags": ["frontend-quality", "fq.console-leak"]}}, {"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-141b30a41e03817b", "level": "note", "message": {"text": "No license file detected"}, "properties": {"repobilityId": "e6f1130c30c9684f", "scanner": "scanner-primary", "fingerprint": "141b30a41e03817b", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["license", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-4127abf29979d7ba", "level": "note", "message": {"text": "Node manifest has dependencies but no lockfile: dashboard/package.json"}, "properties": {"repobilityId": "d346d8d05fb12f9d", "scanner": "scanner-primary", "fingerprint": "4127abf29979d7ba", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["dependency", "lockfile", "reproducibility", "generated-repo-pattern"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "dashboard/package.json"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-3ab5d313dda8e5f9", "level": "note", "message": {"text": "Debug logging residue appears in source files"}, "properties": {"repobilityId": "2776a2a52810ffa3", "scanner": "scanner-primary", "fingerprint": "3ab5d313dda8e5f9", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["debug", "cleanup", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-2d0c7b7ab8f8aacf", "level": "warning", "message": {"text": "Critical user flow still appears backed by mock or placeholder data"}, "properties": {"repobilityId": "381493381198312d", "scanner": "scanner-primary", "fingerprint": "2d0c7b7ab8f8aacf", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["placeholder", "mock-data", "critical-flow", "generated-repo-pattern"]}}, {"ruleId": "scanner-b9088664ace7f748", "level": "note", "message": {"text": "Composite production-readiness gap"}, "properties": {"repobilityId": "984bd8239bf2a72d", "scanner": "scanner-primary", "fingerprint": "b9088664ace7f748", "layer": "quality", "severity": "low", "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": "5e5cae9bd4e16938", "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": "b68357e061f67599", "scanner": "scanner-primary", "fingerprint": "8424db9c75e04ba4", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["provenance", "git-history", "generated-repo-pattern"]}}, {"ruleId": "scanner-2bdd6ae268f78ab9", "level": "none", "message": {"text": "Commented-code block (9 lines) in dashboard/src/index.js:5"}, "properties": {"repobilityId": "cb268a77908a1b09", "scanner": "scanner-primary", "fingerprint": "2bdd6ae268f78ab9", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-ae203eea06a650c5", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 dashboard/src/index.js:43"}, "properties": {"repobilityId": "02c5d79b3abe6470", "scanner": "scanner-primary", "fingerprint": "ae203eea06a650c5", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-595fb457dae1aca7", "level": "none", "message": {"text": "Commented-code block (6 lines) in update/reliability/log-redact/sitecustomize.py:3"}, "properties": {"repobilityId": "d725af653631fd94", "scanner": "scanner-primary", "fingerprint": "595fb457dae1aca7", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-6d5c225e0ef938a7", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 update/reliability/liveness-worker/src/index.js:115"}, "properties": {"repobilityId": "3accb8bac8fc27eb", "scanner": "scanner-primary", "fingerprint": "6d5c225e0ef938a7", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-e9db15888503d674", "level": "warning", "message": {"text": "Network/subprocess call without timeout or try/except \u2014 update/tools/apply_pieceC.py:204"}, "properties": {"repobilityId": "8eddedbcaaa5a1cc", "scanner": "scanner-primary", "fingerprint": "e9db15888503d674", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-a78c4ca10d7f1fb9", "level": "warning", "message": {"text": "Network/subprocess call without timeout or try/except \u2014 update/tools/apply_security_hardening.py:93"}, "properties": {"repobilityId": "a2a37bca9111a4b4", "scanner": "scanner-primary", "fingerprint": "a78c4ca10d7f1fb9", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}]}]}