Replay the skill description the Office skill now ships, assert the renamed tools in the SDK and Web profile catalogs, and keep the shipped tool order alphabetical.
Rename dsh-tool-office to dsh-tool-document and office_render/convert/recalculate to document_*, keep the old names readable for pre-rename Sessions, and fix the Poppler page-count forgery, per-run pdfinfo, and real-Poppler test provider reported in review.
Refs #9015
#8981 adds the registry to dsh-base switched off; Desktop enables it to
select each Session agent's preset, while the SDK composes its agent rows
directly.
The agent row comparison flattened cordis:group rows without their
disabled field, so the members of a disabled group still read as
enabled. Combine the group's value into each member: a disabled group
disables every member, and an expression is recorded beside the
member's own value.
Prompt sections, runtime context entries and injected messages were
keyed by name, so a reordering on one side passed although the model
reads different text. Compare the relative order of the entries both
sides share in each sequence, and of the tools, as an order layer.
* 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.
The agent row comparison only read the rows the Desktop standard preset
declares, so an SDK row outside the preset was never compared. Compare
such a row with the Desktop host row of the same id, report an enabled
SDK row that neither side declares, and record the existing differences:
the primary runtime rows, HMR, the title request and the SDK transport.
Unevaluated !!js nodes compare as their source text.
The first-party Host inspect providers (Service, Event, Config, Runtime,
Tool) lived in a second plugin entry, `@deepseek-ai/dsh-tool-cordis/host`,
that every host composition had to mount once beside the runner. The
runner now registers them into its own inspection registry when it mounts,
mirroring the Client runner, and `tool-cordis` keeps a single entry that
registers `cordis_inspect` per preset.
- Move the providers, the live Config projection, and the generated Host
API catalog into `cordis-host-runner`; it gains the `dsh-app-boot` and
Loader dependencies that `tool-cordis` drops.
- Remove the `./host` export, its locale files, and the
`cordis-inspect-providers` rows from the Web bundle and the snapshot
compositions.
- Document the providers in the runner README and record the removed
entry point in an upgrade guide.
The SDK profile now composes runtime inspection as the Desktop standard
preset does, so its tool and agent row exceptions no longer match a
difference.
tool-fs.applyPatch no longer defaults to false: an explicit resolve step
takes the resolved edit value when a row leaves applyPatch unset. Agent
presets list complete plugin declarations with no shared parent, so this
decides the default in one place instead of on every shipped row; the
dsh-base row and the Web/Desktop standard, ptc, and cordis presets drop
their applyPatch lines, while the minimal preset and sdk-minimal keep the
tool off through edit: false. An explicit applyPatch still wins in both
directions.
The tool-fs unit tests cover the derived default and both overrides; the
read/write/edit guidance tests pin applyPatch: false because they assert
the three-tool text. subagent-agent-preset and the headless owner-local
expectations, whose tool-fs rows enable edit without applyPatch, are
refreshed and gain only the apply_patch section. The Agent Notes, tool-fs
README, tool and config catalogs, and the upgrade guide describe the
derived default and its effect on third-party tool-fs rows.
Mount the Cordis inspection registry, the Host inspect providers, and the
`cordis_inspect` tool in the sdk-app bundle so the SDK model receives the
same runtime inspection tool as the Desktop standard and Creator presets.
The SDK serves no browser, so its directory lists Host providers only.
Remove the standard-mode parity exception, record the SDK-only PTC
difference, keep pre-desktop SDK and Python compositions pinned, refresh
the affected SDK snapshots, and document the change.
The Web/Desktop ptc and cordis presets state applyPatch: true, and the
shipped PTC overlay no longer overrides the dsh-base tool-fs row, so every
shipped coding composition offers apply_patch beside edit: as a JSON tool
under native execution and as a run_code binding under PTC. The SDK and
Desktop PTC tool sets stay equal.
The SDK keyless smoke expects the apply_patch binding under the PTC
overlay, and the Web preset e2e asserts apply_patch in the cordis tool set
and the ptc run_code bindings. The shipped filesystem mutation defaults
Agent Note, the tool-fs README, and the tool catalog describe the new
defaults, and an upgrade guide records the change for 0.2.3-alpha.2.
Revert the temporary shipped default from #7698: the dsh-base tool-fs row
and the Web/Desktop standard preset state applyPatch: true again, matching
the shipped filesystem mutation defaults Agent Note, the tool-fs README,
and the tool catalog, which kept describing the enabled default.
The recording and test pins that held applyPatch: true while the default
was off are removed, since the default now supplies the same tool set; the
default tool lists in the SDK smoke and Web composition tests list
apply_patch again. team-default-enabled, recorded while the default was
off, is refreshed and gains only the apply_patch schema and guidance.
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>
Replace the JSON string escapes of the fixture directories too, because
runtime context quotes the working directory with JSON.stringify, which
doubles Windows backslashes. Sort observed tools in code-unit order, the
order the test sorts request tool names in. Update the shipped fs mutation
defaults note, which still described a PTC tool set comparison.
The SDK PTC overlay is not shipped with @deepseek-ai/dsh and training
flips only the executor rows, so disabling workflow there would not
align any consumer. Restore the overlay, its docs, the keyless smoke
assertions, and the workflow parity exception, and drop the upgrade
guide that described the removal.
Drop the PTC comparison and its dependence on the example PTC overlay,
and with it the per-mode exception field. Compare runtime context values
and the other messages injected into the first request, after replacing
test paths and clock readings and running both sides in UTC, with the
Desktop user message reporting that zone as the GUI client does.
* 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
#8081 aligned the SDK plan mode text with the Desktop presets and #8772
lists dsh-doc in the SDK profile, so their three exceptions no longer
match a difference.
The Desktop ptc preset now enables plugin_manager under the same condition
as the standard preset: only when the Host provides an editable profile. PTC
sessions then manage plugins through run_code bindings, as SDK PTC sessions
already do, and the preset guide no longer says plugin management is off.
The PTC overlay now disables the workflow-ptc engine and tool-workflow rows,
as the Desktop ptc agent preset does: run_code already orchestrates tool calls
in code, so SDK and headless PTC runs no longer list workflow, its prompt
section, or its run_code binding. Native execution keeps the workflow tool.