-
Notifications
You must be signed in to change notification settings - Fork 98
Normalize JSON schemas for OpenAI structured output compatibility #1836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
6aa6298
updated test
tim-inkeep a8a84ae
added changeset
tim-inkeep 13b2858
added tests
tim-inkeep 105396d
Merge branch 'main' into bugfix/schema-validation-user
tim-inkeep 3743ffb
updated
tim-inkeep a3a069d
tupecheck
tim-inkeep 68baa4f
Merge branch 'main' into bugfix/schema-validation-user
tim-inkeep 0dfba21
Merge branch 'main' into bugfix/schema-validation-user
tim-inkeep 24ce207
Merge branch 'main' into bugfix/schema-validation-user
tim-inkeep 753cbf5
few fixes for GenericPromptEditor/GenericJsonEditor (#1904)
dimaMachina eda0de2
local time for traces, end date only when agent is done running in tr…
shagun-singh-inkeep 903960a
updated tests
tim-inkeep 1429cca
Merge branch 'main' into bugfix/schema-validation-user
tim-inkeep a5b019c
updated
tim-inkeep bc2a16b
updated tests
tim-inkeep 6911b96
made a single transaction
tim-inkeep d5443b4
renamed function
tim-inkeep b7187e5
updated
tim-inkeep 6a1b44d
Merge branch 'main' into bugfix/schema-validation-user
tim-inkeep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@inkeep/agents-api": patch | ||
| --- | ||
|
|
||
| Normalize JSON schemas for OpenAI structured output compatibility |
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟠 MAJOR: Comments overstate atomicity guarantee
Issue: The comment at lines 132-133 claims "If SpiceDB sync fails, both DB transactions will rollback automatically" — this is true. However, the converse case is not handled: if SpiceDB succeeds but the DB transaction commit subsequently fails, SpiceDB state cannot be rolled back because
syncProjectToSpiceDbhas no rollback mechanism.Why: The comments set an expectation of full two-phase commit atomicity that doesn't exist. SpiceDB uses
RelationshipOperation.CREATEwhich is not idempotent. If SpiceDB succeeds but DB commit fails, orphaned SpiceDB relationships will exist pointing to a project that doesn't exist in the database. This is arguably better than the previous pattern (orphaned DB project with no SpiceDB access), but the guarantee is one-directional.Fix: Update comments to accurately describe the actual failure modes:
Refs: