Repository navigation
Conversation
The Prompt owner had three ways to change a line's configuration: the prompt.adoptSources data operation, the ConfigureControl trait object, and Session::configure forwarding by line name. They are one state change, so they become one operation, prompt.configure, whose request carries the model, the source values the caller read, and the sources the owner reads itself. Delete Session::configure, Branch::configure, TimelineContext::configure, ConfigureControl and the configureControl catalog registration, and migrate every caller: the App Server's model switch, rollback, prompt refresh and profile adoption, session.language.update, SkillsBranch, PromptSourcesBranch, ToolBinding's tests and the flow and integration tests. Refs #2027
…ge cell ContextPreparation exposes one usage read named usage, without a cancel argument: the call ends when the caller drops it, and the owner's internal cancel-taking read becomes private. The context methods and PromptSuggestion call contextPreparation.usage by line id. AgentLoop exposes agentLoop.compact, whose failure is CompactCommandError with a kind instead of an AgentError-wrapped Result. The context methods call it as compact and keep the reply mapping. PromptSourcesBranch stops being a service: its only caller reached the Session's SessionLanguage through a branch owner object. session.language.get and session.language.update now call the sessionLanguage Session face, which gains update: replace the live value under the language gate and answer the value in force. The PromptSources branch part keeps the gate it shares with that update and publishes no service. Refs #2027
Prompt, PromptSources, Skills, the domain prompt page, service faces and the owner-operations contract state the one configure operation, the reply language's Session face read and update, and the promptSourcesBranch removal. A Prompt flow test covers one configure that adopts a value the caller read, reads a reload target itself and retires a source with an absent value. Refs #2027
Open
agentLoop.compact is the operation, and a caller that holds the line's Loop calls it there. The free function that repeated it only gave the flow tests a second entry point; they call the owner's operation now. Refs #2027
This branch has not been deployed
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.
Refs #2027
The context board's PromptAdoption owner: one
prompt.configureoperation replaces the three entries that changed a line's prompt configuration.prompt.adoptSources(data operation),dyn ConfigureControl(Rust trait object), andSession::configure(forwarding by line name) becomeprompt.configurewith one request: model, the source values the caller read, and the sources the owner reads itself.Session::configure,Branch::configure,TimelineContext::configure,ConfigureControl, theconfigureControlcatalog registration,Prompt::configure_loaded,PromptAdoption;adoptSourcesis gone from the face.session.prompt.refresh/ profile adoption,session.language.update, SkillsBranch, PromptSourcesBranch polling, and the flow and integration tests.xtask/access-layer.json: removedcrates/dim-agent-runtime/src/agent.rsSession::configure(session-forwarding).xtask/retired-names.jsonrecords the replacements.Static closure only in this phase:
rgshows no remainingSession::configure,ConfigureControl,PromptAdoption,adoptSourcesorconfigure_loadedoutside documentation.npm/branch-services.d.tsis stale and is regenerated in the debug phase (xtask -- types). Remaining B owners (ContextUsage, ContextPreparation, PromptSourcesBranch) follow in this branch.