# billion-context dsh bundle layer (#949). # Mounted automatically when the profile's package.json lists billion-context # in dsh.profile.bundles (`dsh plugin --profile add billion-context`); # the loader resolves `name` from the profile's node_modules. # #1772/#2474/#3354: the `auto: false` below targets the HOST-PLANE # compaction-basic row. In profiles bundling @deepseek-ai/dsh-web-app that row # is disabled and the running instance lives inside the agent presets, whose # nested rows no patch layer can address by id — the preset gate rows below # make each Web preset wait for the load-time overlay the bili-compaction-gate # entry registers (vendored from deshark42/dsh-compaction-basic-disable, MIT, # #3354; see src/agent/dsh-compaction-disable.ts). A profile-level full-snapshot # override of preset-standard (#2474) remains the fallback for dsh builds # whose internal 'internal/config' hook moved. # #3662: the gate lives in its OWN always-on entry, not in bili-native — # disabling or kill-switching bili-native must leave the gate service alive so # the presets fall back to STOCK dsh compaction instead of pending forever # (the old wiring bricked session creation on exactly that path). Do NOT # disable the bili-compaction-gate entry itself: it carries the service the # presets wait on; to uninstall, remove billion-context from # dsh.profile.bundles instead. - insert: - id: bili-native name: billion-context - id: bili-compaction-gate name: billion-context/dsh-compaction-gate - id: compaction-basic config: auto: false # #7154: `/compact` drives the SAME host-side compaction call bili's wire # guard refuses unconditionally (#1729) — on a lane bili owns the command has # no outcome except failure, and dsh reports that failure as "Compaction could # not produce a useful summary", which blames the model for a policy refusal. # Stand it down with the same static semantics as the `auto: false` row above # (a kill-switched bili-native does not bring it back either). To get the # command back, set `disabled: false` for this id in the profile's own # cordis.patch.yml — be aware every invocation is still refused at the wire. # Keep in sync with the launcher overlay (writeDshAcpPatch). - id: command-compact disabled: true # #3354: keep in sync with writeDshAcpPatch in src/launcher.ts — entry inject # lists are REPLACED by patches, not concatenated; if a future dsh ships its # own inject list on these entries, merge manually in BOTH layers. - id: preset-standard inject: [biliBasicCompactionPolicy] - id: preset-ptc inject: [biliBasicCompactionPolicy] - id: preset-minimal inject: [biliBasicCompactionPolicy] - id: preset-cordis inject: [biliBasicCompactionPolicy] # #2605: DSH's default retry whitelist omits MALFORMED_RESPONSE, so one # sampling flake that breaks a tool-call argument JSON kills the whole turn # unretried. A patch replaces the targeted row's WHOLE config (no deep # merge), so each row restates every default code plus MALFORMED_RESPONSE — # dropping any default code silently removes its retries. Rows absent on a # given DSH version are skipped with a warning, never a boot failure. - id: llm-deepseek config: retryPolicy: mode: normal retryableCodes: [EMPTY_RESPONSE, RATE_LIMIT, SERVER, TIMEOUT, TRANSPORT, MALFORMED_RESPONSE] - id: llm-deepseek-account config: retryPolicy: mode: normal retryableCodes: [EMPTY_RESPONSE, RATE_LIMIT, SERVER, TIMEOUT, TRANSPORT, MALFORMED_RESPONSE]