Repository navigation
Sweep and books on /apps/v1, the sweep as an AG-UI run - #122
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.
ADR 2: shielding and the books reconciliation, on the proposals page through the app server.
POST …/sweep({ execute }) reads the platform's stream to its end, sent once, a shield recorded before and after. Its answer is the run as AG-UI 1.0 events (@ag-ui/core1.0.3 schemas), delivered whole as JSON:RUN_STARTED(protocolVersion), anACTIVITY_SNAPSHOToftreasury.sweepafter each platform event (public balances as exact decimal strings, shields with their status), thenRUN_FINISHED, orRUN_ERRORwith the failure's kind ascodeand the server's own words. A stream lost after it began has no terminal event: a truncated run, read as unknown and never sent again.GET …/books(reconcileBooks) as an owner read; a Books table in Portfolio shows public drift from the chain and private balances not attributed.settle, so after an unknown or partly sent run Shield isn't offered again. Enabled once the executor holds a treasury grant (account).EventSchemas, truncation,RUN_ERRORwithout the platform's text, audit, not_owner); web unit (the run reader); stack: 1 wNEAR previewed and shielded through the server and in the browser, and the books read.