Skip to content

fix(neural): require local readiness and keep confidence advisory - #1223

Open
hyperpolymath wants to merge 3 commits into
mainfrom
fix/nesy-neural-readiness-20261123
Open

hyperpolymath wants to merge 3 commits into
mainfrom
fix/nesy-neural-readiness-20261123

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Why

The neural aggregate counted a fixed GNN interaction score and a sequence heuristic as confidence contributors, and could admit a VAE result when its placeholder label was absent or false. Downstream, a score outside 0.70..0.76 was treated as evidence of training.

This made the numerical aggregate and the consumer's readiness decision depend on values and labels that do not establish learned computation.

What changes

  • Admit only valid [0,1] outputs backed by the coordinator's own local MoE/RBF/LSM/ESN training state. MoE requires training history for every selected expert.
  • Give GNN/VAE placeholders, the sequence heuristic and trust routing zero weight in both numerator and denominator. Renormalize the existing fixed weights over actual contributors.
  • Return explicit confidence_readiness, contributor identities and component statuses. Missing state returns the conservative unready 0.5 fallback.
  • Remove score-band inference from the actual PatternAnalyzer composition. Preserve prior confidence, novelty/report-only refusals and demote-only adjustment.
  • Keep this local readiness contract advisory: coordinator recommendations are capped at review before outcome-maturity checks, and PatternAnalyzer independently enforces that ceiling. Report advisory_clamped separately from annealing_clamped.

Behavior change: local training state alone cannot return effective automatic execution, even for a mature recipe with a high raw score. The honest score and raw_strategy remain diagnostic. This intentional authority ceiling matters because removing placeholder weights can raise the aggregate across the 0.95 threshold. There is no bypass flag or implicit qualification claim.

Evidence

Base: d158aed87f76b93e4f291e995bef9f26559c7fb2. Elixir 1.19.4 / OTP 27.3.4.19.

  • Three revised placeholder controls against unchanged production source: 3 tests, 3 failures.
  • Final seven-file focused suite: 82 tests, 0 failures, including the real coordinator-to-consumer composition and source/restart controls.
  • A genuinely fitted RBF plus 71 qualified synthetic outcomes gives a mature recipe a raw automatic score; the effective result remains review. Removing maturity history restricts it further to report-only, with distinct clamp flags.
  • Independent review caught the initial renormalization-induced authority increase. The final advisory-ceiling revision passed that review.
  • The reviewed NS-01 and NS-03 source patches were combined in a separate checkout. With CI-pinned Nickel 1.11.0, mix test --seed 0 reported 3742 tests, 0 failures (246 excluded) and no skips.
  • Combined warnings-as-errors compilation, repository-wide formatting, README claims, no-active-Logtalk and diff whitespace checks passed.

The component contract, exact focused commands and limits are in docs/operations/nesy-reinforcement/NS-03-neural-readiness.adoc. These are local execution results; hosted CI has its own status.

Scope and review boundary

This is a draft reinforcement of the existing advisory path. The other production consumer, Kin.Gate, reads the effective strategy and therefore also defers under the ceiling.

Readiness is local training bookkeeping. It does not authenticate a corpus, calibrate RBF similarity as success probability, repair train/serve mismatches, make ESN/LSM persistence complete, demonstrate held-out usefulness or qualify deployment. Source identity remains pathname-based. Model algorithms, admission, persistence schemas, quarantine, CI and the overlapping review-observation/evidence PRs are unchanged.

No Kautz promotion, E0 acceptance or new actuator permission is claimed. A future automatic capability needs a separately reviewed contract and evaluation evidence.

Hosted CI checkpoint — 23 November 2026

All 101 check runs have completed at this PR's existing head: 91 successful, 3 failed, 6 skipped and 1 neutral. Hosted integration, Elixir and scanner checks passed. The remaining failures are Rust Dependency Audit, Rust License & Ban Check and their Security Status aggregate; they concern the existing url 2.5.8 / RUSTSEC-2026-0592 blocker.

The separate dependency remedy is now PR #1224, at 10be2b996e9bd6d037b36b5cfad6101a2cfde9f2. Its narrow Cargo.lock update has passed locked workspace check/tests, cargo-audit and cargo-deny locally. GitHub's Rust audit, licence/ban and aggregate security checks pass at that repair head; some broader jobs are still running.

This PR's head has not been rewritten or integrated with that repair. Its existing failed checks remain failed, and it remains draft pending integration and required review. No advisory suppression, policy weakening or check rerun was used.

CodeRabbit returned a rate-limited neutral result, which is not a completed external review.

@gitnotebooks

gitnotebooks Bot commented Nov 23, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/hypatia/pull/1223

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 0652e4e3-b5dc-463b-bdd9-1f3ec8f32834
Commits

Reviewing files that changed from the base of the PR and between 3e2b800 and 8929060.

Files selected for processing: 6

  • docs/operations/nesy-reinforcement/NS-03-neural-readiness.adoc
  • lib/neural/coordinator.ex
  • lib/pattern_analyzer.ex
  • test/neural_readiness_test.exs
  • test/neural_source_store_lifecycle_test.exs
  • test/placeholder_network_test.exs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T02:12:15.663034Z 8929060 New commits
🔒 Security Review ❌ Failed 2026-12-02T02:09:35.727063Z
We couldn’t complete this review. Comment @codex security review to try again.
8929060 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants