Repository navigation
fix(E0): prevent unverified outcomes leaking into cross-repo learning - #985
hyperpolymath wants to merge 2 commits into
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait...
|
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Superseded by draft PR #986, which is correctly stacked on PR #982's branch. This PR's initial base was |
Pull request was closed
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: db318e6258
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # --- Public API --- | ||
|
|
||
| @doc false | ||
| def qualified_rows(rows) when is_list(rows), do: Enum.filter(rows, &Hypatia.OutcomeTracker.qualified_outcome?/1) |
There was a problem hiding this comment.
Add the missing outcome qualification API
When any stored outcome is processed, this callback invokes Hypatia.OutcomeTracker.qualified_outcome?/1, but that function is not defined anywhere in this commit's tree (a repo-wide search finds only these new callers); the new test also calls an absent qualified_outcome_counts/1. Consequently non-empty calls to repo_confidence/3, repos_with_fix/1, anomaly detection, or index rebuilding raise UndefinedFunctionError instead of qualifying evidence. Include the companion OutcomeTracker implementation in this change or avoid depending on an unavailable API.
Useful? React with 👍 / 👎.
|
❌ Failed to create Coding Agent finishing-touch task. Please try again. |
…(stacked on #982) (#986) ## Stacked E0 consumer, **base: PR #982's event-ingestion branch** This PR depends on [#982](#982) and [event-chain #984](#984). It uses `OutcomeTracker.qualified_outcome?/1` **from its actual base** rather than duplicating the epistemic rule. - Apply the same postcondition qualification to cross-repository local confidence, transferred confidence/repo eligibility, cached outcome indexes, and anomaly evidence. - Add positive and planted-negative Elixir tests that exclude legacy and scan-failed `success` records. - Preserve unqualified attempts in the original audit log; they do not increase confidence or dispatch maturity. - No Python, new external store, vector DB, or multi-user system. ### Status: DRAFT / NOT READY - [ ] #982 corrections, CI and review complete at its own current head; do not merge this before #982. - [ ] `mix format --check-formatted`, Elixir integration tests, current-head governance/security checks and bot conversations pass on this stacked head. - [ ] Demonstrate cross-repo outcomes cannot turn unqualified events into apparent successes; test real data boundary and index consumers. - [ ] All commits Verified under repo policy before presentation as a completed draft. - [ ] After #982 merges, rebase this PR onto refreshed main and revalidate actual head. Supersedes #985, which mistakenly targeted main despite depending on the #982-only qualification function. That branch was not a valid standalone integration and will be closed unmerged.



E0 event-chain dependency: cross-repository learning must share the outcome evidence gate
Companion to #982 and event-chain #984.
Prior
CrossRepoLearninglogic counted everyoutcome: "success"as a success in local confidence, transfer source selection, the indexed counters and anomaly computations, even whenOutcomeTrackerhad explicitly excluded the same event as unverified orscan_failed. That means a stopped false-learning path in one component could reappear from another.This separate scoped PR changes these data consumers to use
Hypatia.OutcomeTracker.qualified_outcome?/1, the same evidence qualification used by the main outcome tracker:test/cross_repo_learning_test.exs.No Python, new vector store, login, model redesign, automatic repair authorisation or unrelated repo modification.
Merge-readiness status: DRAFT / IN_PROGRESS
mix format --check-formattedandmix test test/cross_repo_learning_test.exsrun and pass on this head.The PR is not a claim that the whole event chain is implemented, validated or safely deployable.