Skip to content

runtime: sync the vendored DS Bot to upstream v0.4.3 - #3474

Draft
Birfy wants to merge 3 commits into
mainfrom
upstream/ds-bot-v0.4.3
Draft

Birfy wants to merge 3 commits into
mainfrom
upstream/ds-bot-v0.4.3

Conversation

@Birfy

@Birfy Birfy commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

What

Vendor upstream Fei2411/DS-Bot v0.4.3 (tag 5a9dc8d3dc9e2dc22679a97e7028476ace62640c, tree 0d7ebe34, released 2026-11-29T22:37:49Z) byte-identically under runtime/ds-bot-upstream/, and rewrite runtime/ds-bot-upstream.pin.json for the 12 pinned paths. main was pinned to v0.3.10.

This pull request is opened by hand. The scheduled tracker cannot open it: this organisation forbids GitHub Actions from creating pull requests, so .github/workflows/ds-bot-upstream-track.yml syncs, tests, pushes the branch and then fails at gh pr create. See #3473.

Pinned ids

Computed locally from the upstream tarball and cross-checked against upstream git objects (all 12 paths agree with 5a9dc8d3:<path>):

pinned path type id vs v0.4.2
ds-bot tree 434a917889081cb83bdde0c18cd54702587fd91e changed
link tree 313b7904c0364483ed516fc34041a2f344ca2889 unchanged
app/ui/src tree 3926d002e4f23c8fb6766688fe27d2368b8ea8e6 changed
app/package.json blob ef99e26354316c6e2e9939e8e9adcc3828f795d9 changed
mobile/src/team/gated.ts blob fc59c4950e64dfa77b182d4409bc2f48ed6074ed changed
start.ps1 blob 8b9fa46128bf866b8b8f7b4812a0ab696e84a8ec unchanged
docker/Dockerfile blob dda4a5407e49082ca38f8ecb6a2aa4f1108a010b unchanged
docker/entrypoint.sh blob 56f48c13f38672552a642e600225eaf4576c7f7e unchanged
docker/docker.patch.yml blob 3417c350d13f21c71698c04136fd4084704cdbd7 unchanged
docker/test.mjs blob a2f76b753233894abe986526a6858df51f812fee unchanged
LICENSE blob 261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64 unchanged
NOTICE blob 1ac054d2a0324b760cddac6d5d91ea6da954d499 changed

node scripts/ds-bot-upstream.mjs check → ok (Fei2411/DS-Bot@5a9dc8d3dc9e, ds-bot 0.4.3, v0.4.3; 12 paths), run locally on the committed tree.

UPSTREAM.md now names v0.4.3 as the pin; its "update with" example moves from v0.3.10 to v0.4.3.

Commits

  1. 7db6d678 — vendor the v0.4.3 tree and rewrite the pin (12 pinned paths).
  2. cb106b0c — move the shipped-license and reuse-audit records onto the v0.4.3 bytes: NOTICE 18,626 B / sha256 d7e82004… / blob 1ac054d2…, tag and commit pinned to 5a9dc8d3, ON_DISK in scripts/verify-reuse-audit-pins.py, and the two OFL 1.1 texts that v0.4.3 ships in ds-bot/assets/fonts/ (both files are in the vendored tree). 8 files, +43/−14.

Still to come in this pull request

This is a draft because the bump is not green yet. Upstream changed 16 of the 17 files the FlyBot native overlay pins:

  1. runtime/flybot-image/native-ds-bot-overlay.mjs + native-ds-bot.patch must be ported to v0.4.3 and all 17 [upstream, deployed] sha256 pairs re-pinned. Today the overlay fails closed with Unexpected pinned DS-Bot source: src/host/connectors/index.js, which is the correct behaviour for an unported overlay.
  2. scripts/upstream-test-cleanup-overlay.mjs must be re-pinned for ds-bot/test/rounds.test.js (v0.4.3 sha256 cd1bad125d770e00…) and ds-bot/test/delivery-dedup.test.js (9f30406888611b76…). Both fixtures now drain before deleting upstream, so the two replacements shrink to identity guards.

Those commits will land here, not in a second pull request: one slice, one bump.

Out of scope

.github/workflows/ds-bot-upstream-track.yml (#3448, #3451) and any DS-Bot product change of our own.

Evidence

Local, on this head:

  • 355 files added or changed, 4 removed, relative to the v0.4.2 vendor tree; everything outside runtime/ds-bot-upstream/ and its pin is untouched.
  • Rebuilt the root tree from the pinned objects: b3f96c46e71f652301ef7ef3f61ecab7caa8f915, equal to the commit's tree.

CI results will be reported against this pull request's exact head sha, separately from the local runs above. No parity or acceptance claim is made here.

Related #3473

Vendor Fei2411/DS-Bot v0.4.3 (5a9dc8d3dc9e2dc22679a97e7028476ace62640c,
released 2026-11-29) byte-identically under runtime/ds-bot-upstream/ and
rewrite runtime/ds-bot-upstream.pin.json for the 12 pinned paths.

The pinned ids were computed locally and cross-checked against upstream git
objects: ds-bot tree 434a917, link tree 313b790 (unchanged since v0.4.2),
app/ui/src tree 3926d00, app/package.json ef99e26, NOTICE blob 1ac054d.
docker/ and start.ps1 are unchanged upstream.

UPSTREAM.md now names v0.4.3 as the pin.

Refs #3473
@github-actions github-actions Bot added the risk:T3 Risk tier T3 (needs a human approval), set by the controller from the diff label Nov 30, 2026
The vendored tree from the previous commit is DS Bot 0.4.3, so every
reuse-audit record that carries upstream bytes has to move with it:
NOTICE is now 18,626 B, sha256 d7e82004e8de..., blob 1ac054d..., and the
pins follow the new tag 5a9dc8d3 and version 0.4.3.

Records:
- pins.json and shipped-pins.json: tag, commit, NOTICE blob/sha256/size,
  plus the two font licence texts that v0.4.3 starts shipping inside
  ds-bot/assets/fonts (OFL 1.1, Noto Serif SC and Source Serif 4).
- scripts/verify-reuse-audit-pins.py: ON_DISK moves to the same values,
  so the offline audit compares on-disk bytes against the records.
- docs/reuse-audit/{SHIPPED,INVENTORY,DS-BOT-NOTICE-REVIEW}.md and
  docs/{LICENSING,REUSE_POLICY}.md: version references plus a v0.4.3
  addendum naming what changed upstream. The addendum is not legal
  advice and does not close the audit issue.

Local readings on this tree, not CI: scripts/verify-reuse-audit-pins.py
exits 0 with "all reuse-audit pin checks passed", and
tests.test_shipped_licenses is 5/5 OK.

The overlay port and the two upstream test fixtures are separate commits
on this branch; this one only moves the records.

Related #3473
The vendored tree moved to v0.4.3 (5a9dc8d3, ds-bot 0.4.3) but the
overlay in runtime/flybot-image was still the v0.3.10 one, so the image
recipe failed closed on the first hash mismatch. Re-port it onto the
v0.4.3 sources instead of carrying the old hunks.

- runtime/flybot-image/native-ds-bot.patch: regenerated against the
  v0.4.3 tree, still 17 files (client.js, 5 under src/client, 11 under
  src/host). groups.js is the one long rework: its 30 sites ride the new
  turn engine, so the hunks were rewritten rather than text-merged.
- runtime/flybot-image/native-ds-bot-overlay.mjs: the 17
  [upstream, deployed] pairs now name the v0.4.3 bytes. path moved for
  the two renamed files (src/client/i18n.js -> src/client/locales/zh.js,
  src/client/team-actions.js -> src/client/team-core/actions.js). Only
  src/client/at-menu.js is byte-identical upstream (a0feee8f), so its
  deployed hash is the only one that moved on the client side alone.
- runtime/flybot-image/test/native-shared-groups.test.mjs: the module
  loader hook keyed on the caller URL, which no longer matches once the
  overlay entry is evaluated in place; it now stubs by specifier.
- runtime/flybot-image/test/recipe.test.js: the copy list follows the
  renames and keeps src/client/i18n.js, which at-menu.js still imports.
  The fail-closed assertion itself is unchanged.
- scripts/upstream-test-cleanup-overlay.mjs: v0.4.3 upstream already
  awaits each disposer before removing its home, so the overlay no
  longer rewrites fixtures. It pins the two fixture hashes and the
  drain-then-remove ordering and fails closed on drift.
- scripts/upstream-test-cleanup-overlay.test.mjs: covers the identity
  check, runs both real hooks to observe stop-then-rm ordering, and
  asserts three separate drift cases still throw.

One port is not equivalent, on purpose: v0.3.10 wrapped per-agent
(llm/stream) hooks in filterBotAssembly, which no longer exists, so the
same filtering is a session-level hook keyed on the cache-affinity
rewrite and an empty setup set. bot-tasks.js also gains
isFlyBotWorkspaceForeground in foregroundMoveBlockReason, which the
v0.3.10 overlay did not need. The (open) mapping in logicalAddressOf and
resolveLogicalSession is left alone, so open parts still fall back to
foregroundAddress.

Local, not CI: the pin job's three commands pass (upstream check, 4/4
upstream tests, 6/6 clock and cleanup tests), the image suite is 27/28
with the only red being the /run/secrets path that exists on this host
and not in CI, and the group contract harness is 1/1.

Related #3473.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:T3 Risk tier T3 (needs a human approval), set by the controller from the diff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant