Every import and export declaration, import() expression or type query,
and vi.mock-family call in repository TypeScript that names ui-slots,
ui-primitives or ui-dockkit by package root now names <package>/client;
value and type-only imports alike. Imports of client-store stay on its
package root. Produced by:
pnpm exec tsx .artifacts/codemod/client-specifiers.ts --packages ui-slots,ui-primitives,ui-dockkit \
--imports --write
1213 specifiers in 857 files.
Every declare module of @deepseek-ai/dsh-client-ui-slots in repository
TypeScript now names @deepseek-ai/dsh-client-ui-slots/client; block bodies
are unchanged. The /client subpath is the module that declares SlotMap
and the standard-kit interfaces, so the augmentations land on it
directly. Produced by:
pnpm exec tsx .artifacts/codemod/client-specifiers.ts --packages ui-slots,ui-primitives,ui-dockkit \
--augmentations --write
137 specifiers in 137 files.
Account login without a provider API key replaced the saved default with the first account model and its default reasoning effort. A saved default that names a listed account model is now retained with its effort; every other case is unchanged.
Fixes#9392
The header breadcrumb walks parentId through side conversations as the
left Sidebar's current row does, so a subagent opened from a side
conversation leads back to the listed main conversation. A fork of a
side conversation that is not attached to a Workspace itself attaches to
its source's Workspace, as a subagent's fork does. SessionHeaderMeta
documents parentSession, and the wire, Agent, and snapshot harness
comments name both relationships.
A side fork writes its source Session as parentSession on the Host header
and parentSessionId on the Client placeholder, so the source can list its
side conversations. parentSession now means the creating Session for both
subagents and side conversations; what kind of child a Session is comes
only from origin. The three readers that took parentSession alone as
delegation now check origin: auto-review grants direct-parent instruction
authority only to a subagent's delegating parent, IM stops its hosted-chat
walk at a side conversation, and the session log export leaves side
conversations out of a Session's descendant logs. The left Sidebar resolves
the viewed Session's row through side sources as it does through subagent
creators.
Invalid completed tool arguments are a model-output failure, not a
provider protocol violation. Add the INVALID_TOOL_ARGUMENTS code, retry it
under the default normal policy and manual continuation, and report it
from the pi-ai adapter instead of MALFORMED_RESPONSE.
Refs #9361
* feat(agent-loop): recover inbox claims before step start
* fix(acp): withdraw pending prompts at settlement
* fix(goal): withdraw stale rounds when restoring agents
* refactor(agent-loop): fold inbox claims with the queue
* fix(agent-loop): preserve the inbox wire conversion
* refactor(agent-loop): clarify inbox projection updates
* refactor(agent-loop): keep inbox recovery internal
* refactor(agent-loop): simplify inbox recovery
* refactor(agent-loop): clarify inbox claim recovery
* refactor(agent-loop): clarify when input returns to inbox
* refactor(agent-loop): let the inbox own claim return
The inbox projection groups queues and claims symmetrically and
ReactLoopInbox decides whether a failed turn returns its claim from its
own clear() and claim() calls; the loop's running phase keeps no return
flag. Resume restores the interrupted claim through an unconditional
inbox call after announce. The projection tests become a transition
table and the two Agent Notes merge into one.
* fix(agent-loop): drop inherited claims at a fork's seed cut
A cold read of a crashed parent closes its open turn as interrupted
inside the inherited prefix, so the child projected the parent's claim
and restored it into its own queue. The inbox fold now empties both
claim lists at an inherited session/end-seed; a fork keeps the parent's
queue but never the input the parent had taken out of it.
* test(agent-loop): resume a stored fork of a crashed parent without reviving its claim
* fix(compaction-basic): check model-switch pressure at pre-step so a failed switch returns the input
The switch check ran in agent/request, after step/start had settled the
claimed batch, so a Stop, a failed summary, or an exit during that
summary lost the prompt. The step's route is already fixed at
agent/pre-step, where the inbox still owns the claim; the check now
prices the selected route there and the agent/request listener is gone.
* docs: regenerate the event graph after compaction-basic left agent/request
* fix(agent): keep the model-switch notice ahead of context snapshots
With the switch compaction at pre-step, the runtime-context snapshot is
already part of the admitted batch when the notice is added, so an
appended notice landed after it. The notice now precedes the first
context snapshot, keeping the order the model saw before; the
model-switch-compaction snapshot is refreshed for the compaction events
now preceding step/start.
* fix(typert): accept plain JSON values from any realm
An isolated Client plugin builds its values in an iframe, so they inherit
that realm's Array.prototype and Object.prototype, and the identity checks
in the Remote JSON validation and the Gateway's record checks rejected them.
dsh-util-values exports hasPlainPrototype, which matches this realm's
intrinsics by identity and another realm's through their native
constructors. isRemoteJsonValue and the Gateway's event-frame and
event-request record checks use it. Objects and arrays that inherit any
other prototype stay rejected, so an inherited toJSON cannot rewrite a
validated value.
* fix(client-store): compare Maps and Sets from any realm in shallowEqual
shallowEqual delegated to zustand/shallow, which recognizes collections with
instanceof Map and instanceof Set. A selector in a script-isolated plugin
returns collections built by its iframe realm, so both checks failed and two
Maps fell through to an Object.keys comparison, where any two Maps are equal.
ui-workflow-run selects its running members as a Map, so under isolation its
"Open ..." member buttons never appeared.
shallowEqual now recognizes Maps and Sets by their Object.prototype.toString
tag and otherwise keeps the one-level semantics: Object.is for scalars and
values, Set membership, and own enumerable string keys for other objects
and arrays. A Map comparison also requires each key to exist in the other
Map, so new Map([["a", undefined]]) no longer equals
new Map([["b", undefined]]). zustand remains a development dependency for
createStore and subscribeWithSelector.
* fix(ui-sidebar): ease the sidebar width from its layout owner props
ui-sidebar eased its width under `[data-animating]:not([data-dragging])`,
attributes of ui-layout's frame. With ui-sidebar's styles isolated that
ancestor lies outside its scope, so collapse and expand lost the easing.
ui-layout now passes the same state through `SidebarOwnerProps.animating`,
true while the frame eases its tracks and false during a resize drag or a
viewport change. The sidebar marks its own root `data-sidebar-animating`
and keeps the width transition there, after the quiet-scrollbar transition
it replaces, and reduced motion still turns it off.
* fix(ui-chat): style only Chat's own DOM inside the Conversation scrollport
ui-chat laid out its frame, scroller, aside layer, back-to-bottom control,
and turn rail under `:global([data-conversation-scroll]) .x`, and set
`overscroll-behavior-y` and `overflow-anchor` on ui-conversation's
scrollport through `[data-conversation-scroll]:has(.root)`. With ui-chat's
styles isolated, neither form matched, so Chat scrolled itself inside the
shared scrollport and lost its anchoring, back-to-bottom position, and
floating controls.
Chat's rules now test the scrollport in `:is()` on its own compounds,
`.frame:is(:global([data-conversation-scroll]) *)`, with unchanged
specificity. The scrollport rules move to their owner: ui-conversation
reads `data-conversation-overscroll="none"` and
`data-conversation-scroll-anchor="none"` from an element a View marks
inside the scrollport, and Chat marks its root with them, the second only
while it follows the tail.
* fix(ui-sidebar-documentpreview): hide the body a filling navigator covers
ui-sidebar-files hid the body of any row marked
`data-files-navigator-row` while its navigator Factory filled the row.
The document preview's content row is documentpreview's DOM, so with
ui-sidebar-files' styles isolated the covered preview stayed visible and
reachable by Tab.
The preview's own stylesheet now holds those rules on its `.content` row,
reading the navigator's `data-files-navigator-mode` through the row's
`:has()`, so the preview hides its body itself in both modes. The files
page row never had a covered sibling, so ui-sidebar-files drops the rules
and the `data-files-navigator-row` mark, and its README and Factory
documentation state that the host hides the covered content.
* chore(workflow-ptc): regenerate the workflow guest for the util-values prototype checks
The guest bundles packages/util/values; its same-realm Object.prototype and Array.prototype fast paths changed the generated source.
The opt-in SQLite Session store kept each durable write as one compressed
frame, so SQL could not see an event's sequence, type or time. It now
stores one row per event: the envelope members are columns and data is
JSON text, or one Zstandard frame when it is large. Segments use integer
ids and a segment_paths table that lists each Segment's history, so the
session_* views return a Session's events in one join, forks included.
Derived tables for model calls, tool calls, tool results and compactions
are written in the events' transaction and rebuilt from events when a
table is missing, its version changes, or its derivation was absent.
Opening a database runs ordered upgrade steps under src/migrations. The
first rewrites the frame layout (schema version 1) in place; a frame it
cannot read is set aside without blocking the other Sessions.
BREAKING CHANGE: the frameEvents setting is removed, and a database
upgraded to schema version 2 cannot be opened by earlier releases.
Validate fork parameters before the migration preflight reads storage, reject a
side conversation whose source is a subagent on the Host, refuse a LiveShare
viewer fork that sets an origin before an operation is reserved, and record the
side origin in the independent-forks Agent Note.
/side forks now record origin: 'side' in the child Session header. The
left Sidebar hides side-origin Sessions as it hides subagent children.
The V4 codec admits the side origin without changing the frozen V2
header codec; the persistence acknowledgement records the same-version
decision.
Co-authored-by: Dudu-0223 <290591114+Dudu-0223@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>
Plugin entries export only what the Loader loads, so replace the
isModelListed entry function with LlmRuntime.isModelListed(provider, model)
and route session-controller and subagent catalog checks through ctx.llm.
- Report CONTINUATION_UNAVAILABLE when an agent/created listener wakes a
maintenance restoration before the choice is recorded; the release
cancels the started turn.
- Accept only catalog-listed models in subagents.selectModelByUser, using
the isModelListed check shared with session.selectModel.
- Share the client model-selectable rule and derive ModelDirectory
availability from the subagent address.
- Wait for the maintenance release before reading the child log in the
Web e2e, and fix the Chinese README sentence.
* fix(headless): preserve preset selection and release closed turn state
* fix(agent-presets): report invalid preset selections and keep stored headers
Validate only agent-preset/selected records in the agentPreset projection and name the event sequence in the failure. The state and view schemas accept every header value the Session validator admits, so an empty stored header no longer fails restoration.
* fix(agent-presets): keep trusting logged preset selections
Restore the agentPreset projection, its tests, and the Agent Note consequence to their master state. Writers record non-empty preset IDs only, and Session format admission owns payload validation for stored events, so the projection does not re-validate the typed event payload.
A link cycle lists again at each level until the platform refuses the
path, a link that leads back into the workspace is named by its resolved
position, and search finishes without entering a link. The READMEs and
the decision record state that link cycles are not detected.
Refs #8895
Mount the recommendation plugins in Web and Desktop and expose their skill
switch in General settings. Record card decisions as Session events and
replay decisions from older plugin records. Use English for the two skill
catalogs and retire the optional recommendations bundle.
Co-authored-by: Dudu-0223 <fsyo0223@gmail.com>
`workspaceDescent` parsed the request string by its own rules, while the
filesystem backend expands a leading `~` and applies its platform's drive
and UNC rules to the same string. `list('~')` and a directory watch on `~`
were therefore accepted with no link in the workspace, as was a path on
another drive under a root spelled `//server/share`.
The check now compares the two spellings the backend resolved, the root's
and the directory's `displayPath`: absolute, home prefix expanded, no link
followed. A root spelling that is not absolute never qualifies.
Also correct two documents that still stated the earlier rule and the
reason the decision record gave for refusing a `..` segment.
Refs #8895
`list` and directory `changes` accept a directory whose path descends from
the workspace root by child names, so a link in the workspace that resolves
outside it lists and watches like any directory. An absolute path outside
the root and a `..` traversal stay `workspace-file/outside-workspace`.
The Sidebar file tree keeps the Host's code on a watch failure, so the
level shows the localized line for it.
Resolves#8895
* feat(system-prompt): admit section updates incrementally
* docs(system-prompt): accept retirement restart gap
* test(system-prompt): cover retirement and reentry before admission
* test(system-prompt): align rebase fixtures and persistence history
* fix: align section prompt consumers and CI fixtures
* test: pin credentials for section snapshot fixtures
* test: align remaining snapshots with section admission
* test: preserve section metadata in Web and PowerShell replays
* refactor(system-prompt): retire sections through Cordis cleanup
* chore: refresh section admission history after rebase
* fix(system-prompt): advance admission head after compaction
* fix(system-prompt): trim sections before admission hashing
* docs: move system upgrade guides to current version
* docs: add system message contribution cookbook
* perf(system-prompt): avoid indexing history for admission
* refactor(system-prompt): derive admission from logged sections
* test(system-prompt): update lifecycle and compaction consumers
* test(system-prompt): refresh CLI section event expectations
* test(system-prompt): refresh question composer section metadata
* feat(system-prompt): resolve same-name sections by scope
* refactor(persona): use ordinary section registrations
* refactor(system-prompt): clarify assembly and related control flow
* test(system-prompt): reconcile rebased section snapshots
* test(python): use current system text helper after rebase
* test(system-prompt): refresh CLI expected section blocks
* test(system-prompt): reconcile latest master integration
* test(agent-loop): seed tools before deferred addition assertion
* refactor(compaction): replace system heads when compacting prefixes
* refactor(system-prompt): separate source text and notice attribution
* fix(system-prompt): preserve legacy instructions in compaction snapshots
* refactor(compaction): build system snapshots while reading the summary prefix
* refactor(compaction): rebuild current system instructions
* refactor(system-prompt): defer compaction rebuild to admission
* refactor(system-prompt): remove redundant fixtures and setup
* fix(plan-mode): announce committed user transitions
* docs(system-prompt): reconcile section lifecycle and compaction design
* refactor(system-prompt): consolidate projection version increments
* fix(system-prompt): reconcile master integration and replay fixtures
* docs(system-prompt): align upgrade guide with current release
* refactor(system-prompt): make admission operations explicit
* fix(system-prompt): reconcile master API and release changes
* docs(system-prompt): regenerate catalogs after master refresh
* refactor(llm-pi-ai): delegate text rendering to pi-ai
* fix(llm-pi-ai): preserve blank lines between system text parts
* refactor(system-prompt): remove redundant retirement metadata
* refactor(system-prompt): own admission and use canonical surface targets
* refactor(system-prompt): compare captured sections at commitment
Assembly fixes section text and lifecycle; PromptAssembly.systemUpdates() compares them with the committed projection when the loop commits. This replaces SystemPrompt.admit(), needsRebuild() and isCurrent(), the SystemAdmission export, the loop's reassembly after compaction, and SessionSurface.systemHeadResetSeq. The projection records a pending rebuild as a boolean that an attributed reset clears.
After a compaction inside a step, the rebuilt head uses the sections captured for that step; later source changes arrive as ordinary updates at the next step.
* test: await the session read fixture and type a matcher for lint
* test(tool-executor-ptc): describe same-name section override on executor replacement
Duplicate section names no longer reject a scoped executor; the earlier registration is overridden and returns as an ordinary update when the executor leaves.
* docs(upgrade-guide): move system-prompt integrations to v0.2.2-rc.3
The root version on master is 0.2.2-rc.3; verify-upgrade-guides rejects a guide added under an earlier version directory.
* refactor(system-prompt): rebuild over system messages without sections
A system message without source.sections now marks rebuilding pending, like a compaction summary. The next model attempt replaces the head with current sections and clears later system messages. This removes the separate legacy flag and its appended whole-prompt replacement and notice.
Sessions written by earlier releases, migrated logs, and imported DeepSeek conversations take the same path, so the importer and its tests return to their master versions.
* test(web): refresh the imported-conversation recording and drop a stray bytecode file
The Web recording for a resumed DeepSeek import was recorded while the prompt was appended after the imported history; the head is replaced again, as on master. The .pyc under the macOS signing skill was staged by accident in an earlier merge.
* refactor(session): scan system nodes on read
surface.systemNodes is read only when a system rebuild is written. Scanning the current surface nodes on each read restores the surface fold's plan types and state to their master definitions, which no longer carry the system message.
* refactor(session): rename SystemSurfaceNode.hasContent to isEmpty
The flag reports that the logged content array has no blocks. isEmpty matches the documented "empty head" wording and covers a head that was written empty without ever being cleared.
* refactor(llm): join system text through extractTextContent
extractTextContent gains a trim option that trims each text block and omits blocks left empty. The DeepSeek serializer, the pi-ai converter, and the prompt inspector use it with a blank-line separator in place of three hand-written joins.
The pi-ai converter now trims system and developer text like the other two, so whitespace-only blocks are omitted there as well.
* test(snapshots): refresh the PowerShell and cordis-inspect recordings
The two PowerShell scenarios still held the initial system message as one unattributed block; replay now writes one block per section with its attribution. The cordis-inspect-jsdoc recording embeds the API catalog, which names SystemSurfaceNode.isEmpty since the rename.
* test(plan-mode,harness-dev-context): cover a rejected pre-step and a repeated legacy prompt
A rejected pre-step must leave a queued plan-mode switch pending and unannounced until the next accepted step. A second unattributed system message with the same legacy paragraphs must keep the admitted paragraphs.
* test(web): refresh Web recordings for section-attributed system messages
Twenty-seven Web recordings still held the initial system message as one unattributed block. Replay now writes one text block per section with its attribution; twenty-six recordings differ only in that line.
plan-review also records the plan-mode switch notice before the first prompt and appends a plan:status update on exit in place of a head replacement and a series header, so its expanded golden gains the notice row.
The Creator persona test joins the system text blocks with blank lines, as the adapters do, before matching the persona line.
* refactor(system-prompt): require the retry argument of systemUpdates
The agent loop passes it on every attempt. A custom loop that omitted it on a retry received a full comparison in place of the pending rebuild, with no diagnostic; the type now makes each caller state which attempt it is.
* docs(upgrade-guide): move the system prompt integrations guide to v0.2.2-rc.5
The root version is 0.2.2-rc.5 after the master merge, and verify-upgrade-guides rejects a guide added under an earlier version directory.
* test(web): refresh the mention path presence recording for section-attributed system messages
* test: align two specs that master left failing
The DeepSeek settings spec waited for a saved notice carrying the provider label from before the rename to DeepSeek API. The Windows packaging workflow spec seeded one of the two helpers that the Stage workflow helpers step copies.
* chore: remove a Python cache file committed by mistake
Move shortcuts, account notifications, Models onboarding, document preview,
account contact, and connection recovery off their own webserver/index-inject
page globals onto top-level volatile Config fields that reach each browser face
as SyncedConfig. Keep cordis.yml keys and defaults, keep a typed Host config
parameter so the config catalog still lists these packages (also restoring
ui-context-menu), and regenerate catalogs.
* feat(client): retain recent sessions and skip conversation folding while unrendered
* docs(notes): state that attention-protected recent views are unbounded
* refactor(ui-workspace): derive recent views from visit order and make the limit configurable
Recent views now hold exactly the Sessions one idempotent sync() selects from
the visit order and current snapshots, so navigation reports the shown Session
once and the main-view Session never counts. A failed Conversation resumption
leaves the binding stale so the next window change rebuilds the whole window.
* refactor(session-controller): report facet counts through retainInfo instead of SessionBinding
SessionBinding stays unchanged; SessionRetainInfo gains optional retainedFacets
counts beside retainedBy, and owners derive their facet from retainInfo and the
current binding. Adds the upgrade guide for Client plugins that render a Session
they retain, and updates two web e2e expectations: a recently viewed Session now
keeps its right Sidebar view state when the main view returns to it.
* feat(client): keep drafts with a connectionless Session hold and fold only the last page on return
Session references gain connection (true by default). When no reference keeps
it, the Session disconnects and empties its window while keeping its scope.
When the last facet is released, the Session keeps only its last Turn-aligned
page visible and its event stream buffers the older records, answering page
reads from that buffer before the Host. BoundConversation folds only while the
conversation facet is retained and drops its fold on release. The input hub
holds a Session with { source: 'draft', connection: false } while its draft has
attachments, replacing the root-level draft-attachment ownership; reload marks
remain.
* refactor(session-controller): share retain-info counting with the test fixture
* fix(client): keep gap repair, disconnect, and recent-view counting correct while Sessions are buffered
- Only page reads before the window take buffered records; a live gap repair
reads the Host.
- A resync whose teardown a disconnect interrupted stays cold.
- A Session the main view already retains takes no recent-view slot before
show(), so losing its unread protection during retention evicts nothing.
- Buffering marks the window partial, so the start-of-history marker survives
after the buffer runs out.
* fix(session-controller): consume an arrived older page before buffering the window
* feat(ui-workspace): sync the recent-view limit from the Host Config
recentViewLimit becomes a volatile field of the ui-workspace Host Config
(z.natural().default(10)). The browser receives it through synced plugin
configuration, and RecentSessionViews reconciles whenever it changes, so a
cordis.yml edit takes effect without a page reload. Until a value arrives,
every counted recent view is kept.
The package gains a Host compiler face: src/types.ts holds the shared
Config type, tsconfig.host.json and tsconfig.client.json replace the single
Client config, and every reference names the face it compiles against.
- Only page reads before the window take buffered records; a live gap repair
reads the Host.
- A resync whose teardown a disconnect interrupted stays cold.
- A Session the main view already retains takes no recent-view slot before
show(), so losing its unread protection during retention evicts nothing.
- Buffering marks the window partial, so the start-of-history marker survives
after the buffer runs out.
Session references gain connection (true by default). When no reference keeps
it, the Session disconnects and empties its window while keeping its scope.
When the last facet is released, the Session keeps only its last Turn-aligned
page visible and its event stream buffers the older records, answering page
reads from that buffer before the Host. BoundConversation folds only while the
conversation facet is retained and drops its fold on release. The input hub
holds a Session with { source: 'draft', connection: false } while its draft has
attachments, replacing the root-level draft-attachment ownership; reload marks
remain.
SessionBinding stays unchanged; SessionRetainInfo gains optional retainedFacets
counts beside retainedBy, and owners derive their facet from retainInfo and the
current binding. Adds the upgrade guide for Client plugins that render a Session
they retain, and updates two web e2e expectations: a recently viewed Session now
keeps its right Sidebar view state when the main view returns to it.
* test(session): cover SQLite persistence and document the provider
* test(session): align coverage with the latest SQLite implementation
* test(session): adapt storage coverage to the current SQLite backend
* feat(session)!: pass fork source through agent creation
* refactor: prepare forks privately and append child segment events
* refactor: choose fork sharing in SQLite creation transaction
* fix(session): preserve caller-prepared fork seeds
* feat(session): flush fixed fork prefix before child creation
* fix(session): persist fork sources and await parent drain
* chore: remove test and documentation changes from fork PR
* refactor(agent-loop): reuse agent fork source type
* fix(session): retain SQLite handle and JSONL errors after rebase
* perf(session): create forks from the caller's history without reloading the parent
The fork source carries the complete child history from seq 0. A live
parent's log supplies the shared prefix; a cold parent's prefix is used as
persistence returned it to the caller. The factory no longer reopens the
parent, and the JSONL backend copies the supplied history instead of
decoding the parent log again. The SQLite backend drains a live parent
writer before sharing its persisted prefix, so the factory no longer flushes
the parent or tracks owner disposal during that wait; its fork creation
serializes child events without the read-side validation and reports
publication failures through the shared wrapper.
* refactor(session-query): report the persisted prefix length on live observations
A live observation reports its event count as the persisted prefix, so the
fork command's boundary fallback only covers observations from other
producers.
* test(session): exclude the SQLite POSIX lease from Windows coverage
The SQLite copy of the session write lease executes its POSIX face only off
Windows, matching the JSONL exclusion.
* test(session): report legacy opener failures on stderr
The two-process suite asserts only the error name; the message and cause now
reach the inherited stderr so a CI failure identifies the SQLite error.
* refactor(agent): keep seed as the constructor input and narrow the fork source
CreateAgentOptions.seed stays the only constructor history; source names the
parent and cut a seeded fork shares. The factory stores the constructed log
with that source at creation, so no fork-only seed selection remains in the
loop.
* test(session): complete fork regressions and documentation
* test(session): propagate current SQLite fixtures through fork regressions
* test(session): describe fork creation from the caller's history
The fork source now carries the complete child history and the factory no
longer reopens or flushes the parent, so the fake factories, source
expectations, and cancellation cases follow that flow: a sharing backend
drains the parent writer itself, JSONL copies the supplied history, and
observations always report the persisted prefix. Documentation, the upgrade
guide, and the generated catalogs describe the same behavior.
* test(session): cover fork creation without a factory flush
The in-process fork provider's cases no longer wait for a parent flush: the
live log supplies the completed prefix and cancellation is exercised while
child storage is pending. The Remote fork command's boundary fallback is
covered by an observation that omits its persisted count.
* test(session): drop redundant observation assertions in the fork fallback case
* test(session): describe fork creation with seed beside a parent source
The agent factory keeps seed as the constructor history and source names
only the parent and cut, so the fakes, source expectations, and documentation
follow that split; the case where a live parent replaced the supplied prefix
no longer applies.
* refactor(session): name the fork parent option parentSource
`CreateAgentOptions.source` and `SessionPersistenceCreateOptions.source`
become `parentSource`: the field names the parent Session a seeded fork
shares its prefix with, and the shorter name read as a generic origin.
* refactor(session-query): report persistedEventCount on cold observations only
A live observation holds the Session's own events, none of them read-time
repairs, so its stored prefix is its whole log and the field said nothing;
only a cold read appends interrupted-turn closers in memory and needs to
tell the fork cut where the stored prefix ends.