Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
705e426
fix(tests): pin AC12 sweep visit order so the grandchild-first precon…
Oct 16, 2026
13d91f3
fix: raise SQLite engine self-download timeout to match the updater (…
Oct 16, 2026
b7c090d
fix(fork): close the derived-blocks gate only on real block adoption …
Oct 16, 2026
4b09519
fix(#3384): gate the #2490 refused-ledger planning floor so healthy d…
Oct 16, 2026
3cddfd9
fix: dsh plugin — stop the re-registration self-lock after a failed p…
Oct 16, 2026
9c58af5
docs: correct warmMax default to 0 in CONFIGURATION env row (#3344)
Oct 16, 2026
b5b0575
docs: name daily-cloudcode-pa.googleapis.com as the antigravity defau…
Oct 16, 2026
e2a9d1f
fix: warn INERT for removed compress.absorb / compress.imageCompressi…
Oct 16, 2026
c49948e
fix: escalate replacement teardown SIGTERM -> SIGKILL before manual-c…
Oct 16, 2026
d83b0b5
fix: stamp x-bili-applied-seq only on 2xx responses (#3344)
Oct 16, 2026
b2fd30c
fix: ownership fast-path compares file size/mtime to the landed write…
Oct 16, 2026
c3ab538
fix: warn when upstream accepts a request then stalls before first by…
Oct 16, 2026
4253b41
feat(dsh): stand down dsh native compaction at load time in web profi…
Oct 16, 2026
8e110a6
fix(dsh): un-export internal-only constants flagged by unused-exports…
Oct 16, 2026
05ac755
fix: host-owned save debounce so every landed envelope write gets sta…
Oct 17, 2026
f95d8b8
Merge pull request #3355 from ranxianglei/2026-10-16_range-review-lef…
ranxianglei Oct 17, 2026
269accd
Merge pull request #3374 from ranxianglei/2026-10-16_fork-weak-link-gate
ranxianglei Oct 17, 2026
baffc28
Merge pull request #3451 from ranxianglei/2026-10-17_dsh-compaction-d…
ranxianglei Oct 17, 2026
fa41483
Merge pull request #3393 from ranxianglei/2026-10-16_dsh-rereg-selflock
ranxianglei Oct 17, 2026
31d0f3f
fix: attribute incremental-turn acks by per-request turn id, not URL …
Oct 16, 2026
95b39e5
Merge pull request #3462 from ranxianglei/feat/gate-plugin-lanes
ranxianglei Oct 17, 2026
f054c9d
Merge pull request #3340 from ranxianglei/2026-10-16_fix-incr-ack-url…
ranxianglei Oct 17, 2026
74a79ab
Merge pull request #3348 from ranxianglei/2026-10-16_fix-3338-sqlite-…
ranxianglei Oct 17, 2026
16fd2c9
feat: egress image downscale + read_original_image (#3400)
Oct 16, 2026
84341b2
Merge branch 'master' into 2026-10-16_dsh-ledger-floor-starvation
ranxianglei Oct 17, 2026
9c56a54
Merge pull request #3391 from ranxianglei/2026-10-16_dsh-ledger-floor…
ranxianglei Oct 17, 2026
c92d775
docs: document imageRescale key and BILI_IMAGE_RESCALE envs (#3400)
Oct 16, 2026
18cc8c7
chore: config-reference seeds + regenerated docs for imageRescale (#3…
Oct 16, 2026
1666812
fix: drop unused exports flagged by CI gate (#3400)
Oct 16, 2026
9774ea5
fix: keep session persistence on original image bytes (#3400)
Oct 16, 2026
1586ebd
test: pin legacy wire shape in storage restart proofs (#3400)
Oct 16, 2026
9898787
refactor(image-rescale): drop orphaned comment, single-source the 160…
Oct 16, 2026
26dc135
test(wire-contract): read_original_image joins the base expected tool…
Oct 16, 2026
8bf02b9
test(#3400): pin that the remembered session view keeps original imag…
Oct 16, 2026
00dc126
fix: recognize read_original_image in #1897 sidecar demotion; pin leg…
Oct 16, 2026
af47cc3
docs: correct the cache-proof env-pin rationale to the measured mecha…
Oct 16, 2026
3a645e2
test: pin read_original_image in the bili-owned set alongside its sid…
Oct 16, 2026
b396861
test: regenerate wire-contract manifest goldens for the new tool (#3400)
Oct 16, 2026
84a77b2
Merge pull request #3334 from ranxianglei/2026-10-16_lineage-ac12-ord…
ranxianglei Oct 17, 2026
7efa991
Merge pull request #3419 from ranxianglei/fix/storage-races
ranxianglei Oct 17, 2026
234b6cb
gate: Lane A nudge assertion must stand on its own (#3416)
ranxianglei Oct 17, 2026
b806f61
Merge pull request #3483 from ranxianglei/fix/gate-lane-a-nudge-hard
ranxianglei Oct 17, 2026
5107447
Merge pull request #3425 from ranxianglei/2026-10-16_image-rescale-v2
ranxianglei Oct 17, 2026
e490dbe
feat: dsh web admin relay (security.adminRelay) — remote browsers ope…
ranxianglei Oct 17, 2026
1d4dcfc
fix(storage): builtin npm+npmmirror mirror fallback + Node upgrade hi…
ranxianglei Oct 17, 2026
5fc5fea
Merge pull request #3441 from ranxianglei/2026-10-17_first-byte-stall…
ranxianglei Oct 17, 2026
e9f7b24
fix: admin relay review fixes (#3373): path containment, fail-closed …
Oct 17, 2026
9e8e584
Revert 'feat: remove the absorb distillation feature (#3293)'
ranxianglei Oct 16, 2026
85feb1a
kernel: add optional mediaOnly gate scoping absorb to image-bearing r…
Oct 16, 2026
e9d2f37
feat(absorb): revive media-scoped absorb + pin plugin-lane tool/promp…
Oct 16, 2026
82526be
docs: list mediaOnly in the absorb reference detail section (en/zh)
Oct 16, 2026
17a22b7
fix: regenerate package-lock.json for kernel 0.0.129 (lock-sync gate,…
Oct 16, 2026
e60b0b0
fix: keep round-2 absorb join byte-identical with steady paths — attr…
Oct 16, 2026
d4b3e35
test: refresh storage-render goldens for the new effectiveAbsorb meta…
Oct 16, 2026
c1e8f51
fix(config): compress.absorb is live again — drop it from the removed…
Oct 17, 2026
acd981d
fix: un-inert compress.absorb after its revival — align the #3344 rem…
Oct 17, 2026
fabb7f6
Merge pull request #3486 from ranxianglei/2026-10-17_panel-admin-relay
ranxianglei Oct 17, 2026
4c62d2a
Merge pull request #3422 from ranxianglei/feat/absorb-revival-media-only
ranxianglei Oct 17, 2026
acdd814
kernel: break range groups at dead-ref holes and emit adjacent live s…
Oct 15, 2026
b1c4232
acp_status: surface the storage degrade reason so the model relays th…
ranxianglei Oct 17, 2026
e54cabd
fix: over-limit exits — structurally doomed preflight answers 413, em…
Oct 17, 2026
82138fa
Merge pull request #3485 from ranxianglei/fix/3338-engine-mirror-fall…
ranxianglei Oct 17, 2026
63556d8
Merge pull request #3467 from ranxianglei/wt-3461-ework-daemon
ranxianglei Oct 17, 2026
94e0fe0
Merge pull request #3230 from ranxianglei/2026-10-15_fix-3192-dead-re…
ranxianglei Oct 17, 2026
0542e3c
lane-decisions: migrate the four B-class name-gate bypasses + single …
ranxianglei Oct 17, 2026
48ecfce
refactor(#3482 review): host-profile registry as import-free leaf module
Oct 17, 2026
aa56257
tests(#3490): harden lane-decisions matrix against windows listen/clo…
ranxianglei Oct 17, 2026
494571f
Merge pull request #3490 from ranxianglei/2026-10-17_lane-decisions-b
ranxianglei Oct 17, 2026
eb56cb7
feat(gate): dsh protocol matrix + proxy lane with per-door wire asser…
Oct 17, 2026
4f012b9
chore(gate): ignore plugin-lanes/ work dir
Oct 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-gate-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:
inputs:
agents:
description: "comma-separated lanes: dsh,pi,codex,opencode,claude"
description: "comma-separated lanes: dsh,pi,codex,opencode,claude (+ dsh matrix/proxy #3475: dsh-responses,dsh-anthropic,dsh-google,dsh-proxy)"
required: false
default: "dsh,pi,codex,opencode,claude"

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ dist/
tmp/
tests/.pp-stamp-state-*/
.tmp/
plugin-lanes/
7 changes: 6 additions & 1 deletion CHANGELOG.md

Large diffs are not rendered by default.

75 changes: 45 additions & 30 deletions CLIENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ Two lanes, same plugin (#941):
`--patch` overlay (`~/.dsh-bili/.bili-acp.patch.yml`) — every profile
boots with the bili tools registered natively, model requests carry
`x-bili-plugin` + the dsh session id (plugin mode), and `/acp` is
session-bound. dsh's native auto-compaction is disabled in the same patch
(`compaction-basic` → `auto: false`); manual `/compact` stays available. The
session-bound. dsh's native auto-compaction is disabled in the same patch
(host-plane `compaction-basic` → `auto: false`; web-profile preset
instances are disabled at load time by the #3354 overlay); manual
`/compact` stays available in non-web profiles. The
same patch also adds `MALFORMED_RESPONSE` to the built-in DeepSeek routes'
retry whitelist, so one sampling flake that breaks a tool-call argument JSON
retries instead of killing the turn (#2605).
Expand Down Expand Up @@ -90,25 +92,34 @@ Two lanes, same plugin (#941):
settings overlay rewrites those providers' `baseURL`s to `/bili/` URLs, so
the traffic reaches the proxy regardless of which fetch the transport uses
or what the attribution state is.
- **Web-profile caveat (#1772, corrected by #2474):** when a profile's
bundles include `@deepseek-ai/dsh-web-app`, the running `compaction-basic`
instance lives inside an agent preset (`preset-standard.config.plugins`).
No patch layer can address that NESTED row by id — dsh's patch engine
indexes only top-level rows and true group children — so the bundled
`auto: false` lands on web-app's already-disabled host-plane row and the
preset instance keeps auto-compaction ON. But `preset-standard` itself is
an ordinary bundle-layer entry: a profile-level patch (your profile's
`cordis.patch.yml`, applied after every bundle) overrides it by id with a
FULL-SNAPSHOT `config` — copy the complete preset config from
`dsh --profile <name> --dump-config`, add `config.auto: false` under its
`compaction-basic` row, append the result to `cordis.patch.yml`. Config
replacement is WHOLESALE: a partial snippet silently drops everything not
restated — including the preset's own `id`/`order` identity, which can
leave the preset unrecognized by the roster — and `- insert:` with the
same id appends a second dead row instead of merging. The snapshot also
freezes the roster until re-copied after a dsh preset update. The plugin
logs a one-time `[dsh-client]` warning naming this recipe at boot in such
profiles; ACP compression is unaffected.
- **Web-profile compaction (#1772, resolved by #3354):** when a profile's
bundles include `@deepseek-ai/dsh-web-app`, the running `compaction-basic`
instance lives inside an agent preset (`preset-standard.config.plugins`).
No patch layer can address that NESTED row by id — dsh's patch engine
indexes only top-level rows and true group children — so the bundled
`auto: false` lands on web-app's already-disabled host-plane row and
changes nothing. Since #3354 bili closes the gap at LOAD TIME: the
`bili-native` bundle entry registers a cordis `internal/config` overlay
(vendored from deshark42/dsh-compaction-basic-disable, MIT) that marks
the preset's `compaction-basic` and `command-compact` rows
`disabled: true`, and the preset gate rows in the bundle patch make each
Web preset wait for that overlay before it can register. Native
auto-compaction is OFF in these profiles too (and `/compact` is
unavailable there); ACP compression is unaffected. The overlay rides an
INTERNAL dsh hook and is version-sensitive — if you still see a dsh
compaction checkpoint land on a newer/older dsh build, fall back to the
#2474 recipe: a profile-level patch (your profile's `cordis.patch.yml`,
applied after every bundle) overrides preset-standard by id with a
FULL-SNAPSHOT `config` — copy the complete preset config from
`dsh --profile <name> --dump-config`, add `config.auto: false` under its
`compaction-basic` row, append the result to `cordis.patch.yml`. Config
replacement is WHOLESALE: a partial snippet silently drops everything not
restated — including the preset's own `id`/`order` identity, which can
leave the preset unrecognized by the roster — and `- insert:` with the
same id appends a second dead row instead of merging. The snapshot also
freezes the roster until re-copied after a dsh preset update. The plugin
logs a one-time `[dsh-client]` note naming both paths at boot in such
profiles.
- **Global copy shadows the profile copy at load time (#2891):** dsh resolves
the bare `billion-context` name in `dsh.profile.bundles` installation-
anchor-first — from its own install tree (the global npm root) before the
Expand All @@ -128,8 +139,9 @@ spawn mode (a loopback proxy target is never proxied, so the MITM envs are
simply bypassed); already-routed `/bili/`-prefixed requests pass through
untouched except for header stamping. Known limitation: manual
`/compact` has no dsh-side event hook, so its boundary is left to the
kernel's natural ingest diff (auto-compaction is off in non-web profiles, so
this is rare; see the #1772 caveat above for web profiles).
kernel's natural ingest diff (auto-compaction is now off everywhere — host
plane via the bundle patch, web-profile presets via the #3354 load-time
overlay; see the web-profile note above).

**Host-side context meters diverge from the model's view by design (#2837):**
in plugin mode the host's durable session log
Expand Down Expand Up @@ -536,19 +548,22 @@ the four have a base-URL env hook; one doesn't:
override (verified in the v2.19.1 binary: *"Overriding CloudCodeServerURL
via CLOUD_CODE_URL environment variable"*) — same shape as the gemini-cli
base-URL hook. The launcher sets
`CLOUD_CODE_URL=<proxy>/bili/<upstream>` (default upstream
`https://cloudcode-pa.googleapis.com`; if you export your own
`CLOUD_CODE_URL`, that value is relayed through the proxy instead). No MITM,
`CLOUD_CODE_URL=<proxy>/bili/<upstream>` (default upstream
`https://daily-cloudcode-pa.googleapis.com` — Antigravity's real default;
the bare `cloudcode-pa` host 400s on `/v1internal:*`, #3129; if you export
your own `CLOUD_CODE_URL`, that value is relayed through the proxy instead). No MITM,
no CA install. The proxy recognizes the wire **by path**:
`:streamGenerateContent` / `:generateContent` / `:countTokens` requests are
routed to the Google-native adapter and compressed like `bili gemini`. If
the server instead uses gRPC method paths
(`/google.internal.cloud.code.v1internal.CloudCode/*`), those requests are
not recognized and relay verbatim without compression — a graceful degrade,
fixable with a per-lane `protocol` declaration (#1909) once confirmed.
Fallback if Google ever removes the env hook: cert-MITM — the
language_server honors `HTTPS_PROXY` and does not pin certificates, so add
`cloudcode-pa.googleapis.com` to `"mitm".domains` and trust bili's root CA.
Fallback if Google ever removes the env hook: cert-MITM — the
language_server honors `HTTPS_PROXY` and does not pin certificates, so add
`daily-cloudcode-pa.googleapis.com` (Antigravity's real default endpoint;
the bare `cloudcode-pa` name 400s on `/v1internal:*`, #3129) to
`"mitm".domains` and trust bili's root CA.
The desktop app and the IDE extension share this same language_server
channel; the launcher drives the CLI specifically — desktop users can export
`CLOUD_CODE_URL` manually or use the MITM recipe.
Expand Down Expand Up @@ -788,7 +803,7 @@ file (2.x rejects bare file paths in the config `plugin` array); **1.x**
hosts get the bare file path.

What the plugin does (both generations): registers the bili tools natively
in-host — compress / decompress / search_context / acp_status —
in-host — compress / decompress / search_context / acp_status (+ absorb) —
and stamps the proxy headers on every outgoing provider request, including
context-window / max-output read from the host's own model catalog
(`ctx.catalog.model.list()`, refreshed every 60s) and reported to the proxy
Expand Down
Loading
Loading