Files
deepseek-harness/docs/experimental-persistence-catalog.md
T
LegGasai a850cda7fd feat(worktree): add enter_worktree for existing worktrees of the pool
`ctx.worktrees.enter(agent, { name })` and the model tool `enter_worktree`
move a Session into an existing worktree in the pool of the checkout it works
in. The directory must resolve inside that pool and be a registered worktree
of the repository; otherwise the call fails with the new code
`WORKTREE_NOT_FOUND` and the Session stays where it is. Entry changes neither
Git state nor files.

Each entry appends a `plugin:worktree/entered` record. `exit` reads it to
return the Session to the checkout it entered from, so `exit_worktree` now
also leaves entered worktrees. Archive reclamation still removes only
checkouts a Session created. The `worktree` projection keeps one entry per
entered directory; its state version is 2.

The recorded worktree scenario enters the first worktree again, reads the
file it wrote there, and leaves.
2026-11-13 20:18:56 +08:00

6.6 KiB
Raw Blame History

Experimental Plugin Record Catalog

English | 中文

These current-source PluginRecordMap declarations describe ignorable, log-only records owned by experimental packages. Payload annotations link to their owning source without expanding referenced types. Records stay outside the known-event set, persistence schema fingerprints, and compatibility history; format migrations retain them on a best-effort basis.

Run pnpm run gen-persistence-catalog to regenerate both persistence catalogs, their language pairs, and associated artifacts. pnpm run verify-persistence-catalog checks all generated files.

Shared Session event declarations and resolved schemas appear in the Session persistence event catalog.

Record Owner Purpose Payload and source
plugin:action-cards/decision @deepseek-ai/dsh-action-cards Dismissals and kind-defined progress of action cards. ActionCardDecision · packages/experimental/action-cards/src/types.ts
plugin:client-ui-forge/worktree @deepseek-ai/dsh-experimental-client-ui-forge A request, withdrawal, or creation of the worktree a Session starts in. WorktreeRecord · packages/experimental/client-ui-forge/src/types.ts
plugin:forge-session/binding @deepseek-ai/dsh-experimental-forge-session A caller or discovery action that binds, restores, or hides one change request. BindingRecord · packages/experimental/forge-session/src/types.ts
plugin:translator/request @deepseek-ai/dsh-experimental-translator Provider-independent translation input, retained before dispatch. TranslationRequestRecord · packages/experimental/translator/src/types.ts
plugin:translator/result @deepseek-ai/dsh-experimental-translator Successful translation, retained before it is returned to the consumer. TranslationResultRecord · packages/experimental/translator/src/types.ts
plugin:worktree/created @deepseek-ai/dsh-experimental-worktree A checkout the worktree service created for the Session, which entered it in the same operation. CreatedWorktree · packages/experimental/worktree/src/projection.ts
plugin:worktree/entered @deepseek-ai/dsh-experimental-worktree An existing checkout the Session entered, and the checkout it entered from. EnteredWorktree · packages/experimental/worktree/src/projection.ts
plugin:timeline/annotation @deepseek-ai/dsh-timeline Record a discussion or control request from the user. { version: 1; sessionId: SessionId; annotation: Annotation; } · packages/experimental/timeline/src/records.ts
plugin:timeline/delivery @deepseek-ai/dsh-timeline Record whether the agent accepted a control request. { version: 1; sessionId: SessionId; id: Annotation['id']; delivery: 'accepted' | 'unknown'; } · packages/experimental/timeline/src/records.ts
plugin:timeline/failure @deepseek-ai/dsh-timeline Record a failed interval report attempt. { version: 1; sessionId: SessionId; id: IntervalReport['id']; message: string; } · packages/experimental/timeline/src/records.ts
plugin:timeline/import @deepseek-ai/dsh-timeline Restore a user-selected task tree and its discussions. TreeRecord & { annotations: Annotation[]; prepared?: true; continuation?: z.infer<typeof importContinuationSchema>; } · packages/experimental/timeline/src/records.ts
plugin:timeline/import-ready @deepseek-ai/dsh-timeline Publish an import after its full payload has reached durable storage. { version: 1; sessionId: SessionId; callId: string; } · packages/experimental/timeline/src/records.ts
plugin:timeline/priority @deepseek-ai/dsh-timeline Save a priority change made by the user. { version: 1; sessionId: SessionId; treeId: Tree['id']; taskId: Task['id']; priority: Priority; createdAt: number; } · packages/experimental/timeline/src/records.ts
plugin:timeline/remove @deepseek-ai/dsh-timeline Remove a tree and its discussions from the current plan. { version: 1; sessionId: SessionId; treeId: Tree['id']; } · packages/experimental/timeline/src/records.ts
plugin:timeline/reply @deepseek-ai/dsh-timeline Save the agent’s reply to one discussion. { version: 1; sessionId: SessionId; id: Annotation['id']; text: string; createdAt: number; } · packages/experimental/timeline/src/records.ts
plugin:timeline/report @deepseek-ai/dsh-timeline Save a validated interval report and its coverage. ReportRecord · packages/experimental/timeline/src/records.ts
plugin:timeline/request @deepseek-ai/dsh-timeline Record the report request with its reference to a reused Session prefix. { version: 1; sessionId: SessionId; id: IntervalReport['id']; contextSeq: number; prefixLength: number; request: StoredRequest; } · packages/experimental/timeline/src/records.ts
plugin:timeline/select @deepseek-ai/dsh-timeline Select a saved task tree for subsequent work. SelectionRecord · packages/experimental/timeline/src/records.ts
plugin:timeline/tree @deepseek-ai/dsh-timeline Save a task tree and the tool call that changed it. TreeRecord · packages/experimental/timeline/src/records.ts