Add experimental Jev semantic observer boundary - #35
Merged
Merged
Conversation
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
packages/semantic-predicateas a Pi-independent workspace packagePOST /api/alpha/decisions)extensions/semantic-observeras a thin, explicitly invoked Pi adaptertask, satisfyverify, or unlock completionBoundary
extensions/*andpackages/*are both root workspaces. The evaluator package knows nothing about Pi.Pi runtime evidence
The caller now supplies only the observation IDs to run:
It does not supply
request,changes, verification prose, or repository context.A new side-effect-free
task/evidence.tspacket exposes the same runtime facts used bytask.review_contextwithout creating a review request:The semantic observer augments that packet with:
read/contexttool results already seen in the session, joined back to resource events viatoolCallIdThe working plan is included only as current-stage context and explicitly marked as a hypothesis, not as authority to expand task scope.
Context projections
The context policy remains:
Jev API
https://openrouter.ai/api/alpha/decisionsmodel + state + questionstypesafe/jev-1.13noulas the yes-probabilitychoice + probabilities + confidencescore + legend + probabilities + confidenceSafety / scope
task,verify,repository, ordelegateauthorityOPENROUTER_API_KEYonly fails the observer callValidation