Add remote semantic claims gateway - #15
Merged
Merged
Conversation
ferueda
marked this pull request as ready for review
July 22, 2026 18:10
…indows Plan incremental session windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
semantic-v1Vercel AI Gateway route pinned to GPT-OSS 120B on Cerebrasnoema analyze claimscommand with remote approval, bounded input, privacy filtering, and exact reuseWhy
This completes Milestone 2's first live semantic-claims path while preserving Noema's local-first, fail-closed boundaries. The live smoke exposed differences between the nominal OpenAI-compatible contract and the actual Gateway/Cerebras behavior, plus semantic candidates that were structurally valid but inconsistent with local evidence rules. The change keeps remote output untrusted until local admission and makes failures useful to diagnose without retaining provider bodies or rejected model prose.
Impact
Noema can now turn one stored deterministic fact analysis into validated semantic claims and knowledge events through the pinned Gateway route. Exact reruns reuse the completed analysis. The API key, outbound prompt, raw response, rejected candidate prose, and resolved evidence text are not persisted.
Zero-data-retention and no-prompt-training are explicitly recorded but disabled in the example route for the current experiment. Provider defaults therefore apply; remote execution still requires
--allow-remote, a reviewed route file, and an API key.Live validation
Validation
make checkplan-review