Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Make prompt configure the single adoption entry (#2027-B) - #2482

Draft
eric8810 wants to merge 4 commits into
mainfrom
dim/2027-context
Draft

eric8810 wants to merge 4 commits into
mainfrom
dim/2027-context

Conversation

@eric8810

@eric8810 eric8810 commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Refs #2027

The context board's PromptAdoption owner: one prompt.configure operation replaces the three entries that changed a line's prompt configuration.

  • prompt.adoptSources (data operation), dyn ConfigureControl (Rust trait object), and Session::configure (forwarding by line name) become prompt.configure with one request: model, the source values the caller read, and the sources the owner reads itself.
  • Deleted: Session::configure, Branch::configure, TimelineContext::configure, ConfigureControl, the configureControl catalog registration, Prompt::configure_loaded, PromptAdoption; adoptSources is gone from the face.
  • Migrated callers: App Server model switch / rollback / session.prompt.refresh / profile adoption, session.language.update, SkillsBranch, PromptSourcesBranch polling, and the flow and integration tests.
  • xtask/access-layer.json: removed crates/dim-agent-runtime/src/agent.rs Session::configure (session-forwarding). xtask/retired-names.json records the replacements.

Static closure only in this phase: rg shows no remaining Session::configure, ConfigureControl, PromptAdoption, adoptSources or configure_loaded outside documentation. npm/branch-services.d.ts is stale and is regenerated in the debug phase (xtask -- types). Remaining B owners (ContextUsage, ContextPreparation, PromptSourcesBranch) follow in this branch.

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
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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant