Review of the consumers layer: - `SandboxPolicyRequest.root` is removed. `resolve` answers only for a Session. `prepare` accepts a Session or a checkout directory and returns that checkout's validated Git administration directories. The worktree service builds the policy of removal and restoration itself: the Session's mode and grants, the source checkout as the root, and that checkout's derived directories. The forge panel swaps the root for its two reads of the source repository. - The Git layout reads move to `src/linked-checkout.ts` with direct tests; the security rationale stays in the README, which the function comment links. - `resolve` and the model-visible policy share one merge of configured, registered, and derived writable roots. - `workspace-files` takes a live Session's root from the sandbox policy instead of repeating its fallback chain. - `TurnRecorder` takes a fixed directory and an explicit `moveTo`, which the plugin calls on `workspace-root/change`; each turn keeps its own canonical paths. A real-sandbox test restores a missing worktree of a linked source checkout in a process that never worked in it.
description, kind
| description | kind |
|---|---|
| The deliverables group map: the Host plugins that record what a turn hands to the user, explicit file deliveries and observed workspace changes, for users and maintainers navigating the group. | package-group |
packages/deliverables
English | 中文
Summary
The deliverables family records what a turn hands to the user as durable Session events that only clients read: the present tool declares final files the model delivered, and the workspace-changes recorder captures the files a turn changed with their line counts from git snapshots and whole-file captures, and serves each file's comparison. The Web deliverables plugin renders both at the end of a turn. Choose this family for a product that shows delivered files and per-turn changes; present needs ctx.tools and ctx.fs, the recorder needs ctx.subprocess and a git executable.
Table of Contents
Packages
| Package | Role | ctx key |
|---|---|---|
deliverable-file-references |
Shared file-link and result-delivery guidance for Web and SDK hosts | registers on ctx.systemPrompt |
tool-present |
Declares existing files as final deliverables through the present tool |
registers on ctx.tools |
workspace-changes |
Summarizes each top-level turn's changed files from git working-tree snapshots and whole-file captures, and serves their comparisons | provides ctx.workspaceChanges; listens to session/event, appends workspace/changes |
Related documentation
- Deliverables subsystem — the
PresentedFileandWorkspaceChangesSummaryvocabulary, the two durable events, and the summary service. - Web deliverables — the turn-tail cards and file mentions that render these events.
- Present declares workspace source files — the delivery decision.
- Turn changed-files card — the snapshot design and coverage rules.
Dev Note
Working context for maintainers — click to expand
None.