Commit Graph
8811 Commits
Author SHA1 Message Date
Turtle 2ec306eacb Merge pull request #8073 from deepseek-harness/turtle/fix-web-fetch-error-58da60e9770f
feat(web-fetch-http): classify transport failures and show readable causes
2026-11-13 12:39:48 +08:00
MagolorandZiyaZhang d997173e45 feat(timeline): integrate Timeline as an experimental plugin (#7973)
* Add Timeline as an experimental Harness plugin

* fix(timeline): align prompt counters and release inactive views

* fix(timeline): refine frontend motion and document features

* test(timeline): refresh recorded context after upstream update

* fix(timeline): satisfy UI locale and module graph checks

* test(timeline): align integration checks with CI test lanes

* docs(timeline): document exported locale dictionaries

* fix(timeline): use session records and native client interfaces

* fix(timeline): mount edit RPC and align integration checks

* fix(timeline): follow Harness theme rules

* test(timeline): cover session recovery and client interactions

* fix(timeline): address integration review findings

* fix(timeline): isolate forked plan continuation

* docs(timeline): record the 0.4.0 integration changes

* docs(timeline): clarify the plugin description

* test(timeline): cover integration behavior and recovery edges

* fix(timeline): align dependency metadata and test lint

* fix(timeline): isolate scoped work and harden replay

* docs(timeline): refresh persistence catalog source links

* docs(timeline): document planning ownership predicate

* test(timeline): refresh the recommendation description snapshot

* build(timeline): classify Host dependency exports

* test(web): pace the Goal queue snapshot replay

* feat(timeline): make sidebar auto-open configurable

* docs(timeline): clarify sibling task weights

* fix(timeline): harden report updates and checkpoint recovery

* refactor(timeline): share detail view props

* fix(timeline): clarify progress, reports, and sidebar settings (#8347)

* fix(timeline): align the integration with current Harness contracts

* fix(timeline): preserve navigation when removing a task tree

* Reduce Timeline report replay allocations

Reuse the discussion list when report retention leaves its targets intact.
Clarify that the integrated package follows the Harness release version.

Node 24.21.0 on macOS arm64, median of three measured replays after warmup.
With 17,640 reports, replay took 5650 ms before and 804 ms after.
Peak RSS fell from 343 MiB to 288 MiB. Retained heap stayed near 33 MiB.
The serialized view stayed at 5,297,849 bytes.

---------

Co-authored-by: ZiyaZhang <[email protected]>
2026-11-13 11:54:22 +08:00
creatixchu bbd971ba80 Reset Files backoff in completion order and count the first uncached image 2026-11-13 11:22:24 +08:00
imccyu 695f640063 Merge pull request #8133 from deepseek-harness/discuss-client-iframe
refactor(client): add client module js realm (with module manifest and style operation)
2026-11-13 10:11:54 +08:00
imccyu 71753fdf91 refactor(connection): add connection auth provider for remote connection (#8266)
* refactor(connection): extract peer authentication providers

* test(connection): cover provider lifecycle and satisfy package gates

* fix(packaging): publish authentication provider locale resources

* test(auth): use runtime login output and cover gateway admission

* fix(auth): preserve Worker requests and migrate Desktop fixtures

* refactor(auth): centralize route admission with required policy

* fix(release): align authentication providers with rc.2

* refactor(connection): keep peer lookup and source policy private

* test(gateway): cover centralized upgrade rejections

* fix(ci): authenticate homepage compression probe

* refactor(auth): let Token own API socket lifecycle

* fix(auth): prevent caching admission refusals and clarify ownership

* refactor(web): collect provider entry URLs after readiness

* refactor(webserver): name the shared entry URL event

* refactor(connection): provide authentication as a nested service

* fix(web-app): restore startup publication defaults

* fix(auth): scope web events and preserve callback flows

* docs(auth): record the implemented provider architecture

* fix(auth): require owner access for administrative routes
2026-11-12 23:14:32 +08:00
Jiawei Song fb9c0237a0 Merge pull request #8367 from deepseek-harness/docs/feedback-exported-logs
docs(feedback): describe reading feedback from exported session logs
2026-11-12 20:24:10 +08:00
sjw1231 52e3256e78 Merge remote-tracking branch 'origin/master' into docs/feedback-exported-logs 2026-11-12 19:57:29 +08:00
Yichen Jiang d9b1b1e2c4 Merge remote-tracking branch 'origin/master' into worktree/sdk-cua-program-tool-600e33
Both sides changed the macOS README, so its pairing record is recorded
again from the merged text.

# Conflicts:
#	packages/experimental/cua-macos/README.i18n.yaml
2026-11-12 19:52:06 +08:00
Dudu-0223 ed3b88d211 Merge pull request #8356 from deepseek-harness/fix/cua-partial-ax
fix(cua): isolate invalid AX branches during observation
2026-11-12 19:47:05 +08:00
Yichen Jiang f53238b554 Merge remote-tracking branch 'origin/master' into worktree/sdk-cua-program-tool-600e33
Both sides changed the CUA and macOS READMEs, so their pairing records are
recorded again from the merged text.

Master added a CUA guidance line and changed the cua_run_code description.
The prompt and schema sidecars of the SDK cua-run-code scenario and the
prompt sidecar of the headless cua-run-code-ptc scenario are refreshed to
match.

# Conflicts:
#	packages/experimental/cua-macos/README.i18n.yaml
#	packages/experimental/cua/README.i18n.yaml
2026-11-12 18:39:16 +08:00
_Kerman 1848364e29 Merge pull request #8380 from deepseek-harness/xtr/remove-python-ptc
refactor(ptc)!: remove all Python PTC support
2026-11-12 18:26:48 +08:00
Yichen Jiang ff825c2c7b Merge pull request #8373 from deepseek-harness/worktree/model-switch-compact-overflow-dc62bb
fix(compaction): summarize on the model that last answered
2026-11-12 18:07:39 +08:00
creatixchu 669b998fd0 Merge macOS system-pointer drag into AX observation recovery 2026-11-12 18:01:07 +08:00
Yichen Jiang 0789f36a26 docs(compaction): address review comments on summary-route wording and the snapshot fixture
State the fallback order consistently, qualify it for sessions without an assistant message, document the unavailable-answering-model limit and the tool-declaration source, share the system prompt sidecar, and align the recorded task with the scenario.
2026-11-12 17:54:23 +08:00
Yichen Jiang f40e969164 docs: regenerate the module graph for the compaction-basic projection dependency 2026-11-12 17:48:34 +08:00
_Kerman c1e490b7b5 fix(ptc): reject unsupported providers without native fallback 2026-11-12 17:46:53 +08:00
Yichen Jiang 77e491f9b0 refactor(compaction): record the answered route in a private projection
Review feedback: the summary route and its restorable state belong to compaction-basic. A host-only projection now records the provider/model of each assistant message source, replacing the tokenMeter.answeredRoute() service method, which had one caller.
2026-11-12 17:41:17 +08:00
Dudu-0223 ad6b8956c6 fix(cua): isolate invalid AX roots during scope discovery 2026-11-12 17:11:03 +08:00
_Kerman 656533bde1 refactor(ptc)!: remove all Python PTC support 2026-11-12 17:09:15 +08:00
sjw1231 08129603b0 Merge remote-tracking branch 'origin/master' into refactor/tool-errors-document
# Conflicts:
#	docs/config-catalog.md
#	docs/config-catalog.zh.md
#	packages/document/tool-office/tests/tool-office.spec.ts
2026-11-12 17:04:10 +08:00
Yichen Jiang 65b3c2f6e0 Merge remote-tracking branch 'origin/master' into worktree/model-switch-compact-overflow-dc62bb 2026-11-12 16:36:23 +08:00
Yichen Jiang 9ebb02afb7 fix(compaction): summarize on the model that last answered
A request that overflows still commits its request header, so overflow recovery, /compact, and the next model-switch check sent the summary to the model that had just rejected the history. Summaries without a configured target now use the route of the latest assistant message, read from the token meter's existing measurement anchor.
2026-11-12 16:35:51 +08:00
Xu Hanxiang 99208d19d9 Merge pull request #8303 from deepseek-harness/feat/liveshare-owner-state-claim
fix(liveshare): claim the owner state per running host
2026-11-12 08:21:25 +00:00
sjw1231 d670015cd6 docs(feedback): keep only feedback-specific rules for exported logs
Link the OTel backend and session-telemetry pages for record fields,
deduplication, and redaction instead of restating them. Limit the
inherited-event exclusion to feedback counting so a seeded Session's
rated reply stays locatable, name the messageId paths, and drop the
format-based plugin heuristics in favor of the no-actor fact.

Refs #8366
2026-11-12 16:14:25 +08:00
Dudu-0223 e44a05465d fix(cua): unify AX observation failure codes 2026-11-12 16:07:22 +08:00
sjw1231 f07ccacb9a docs(feedback): describe reading feedback from exported session logs
Document the OTel session-log record fields, the three feedback events,
deduplication, fork-inherited events, current-value reduction, locating
the rated reply, and recognizing plugin-written feedback fields.

Refs #8366
2026-11-12 16:00:36 +08:00
Yichen Jiang 0248933aea Merge remote-tracking branch 'origin/master' into worktree/sdk-cua-program-tool-600e33
# Conflicts:
#	packages/experimental/cua-macos/README.i18n.yaml
#	packages/experimental/cua/README.i18n.yaml
2026-11-12 15:54:45 +08:00
Dudu-0223 77bee18b9d fix(cua): align unreadable node markers with child gaps 2026-11-12 15:37:40 +08:00
Yichen Jiang 8ab885c9ab feat(cua)!: give Agents without a preset the cua_run_code tool
A native CUA provider configured with a preset id (the default `ptc`)
registered no tool for an Agent that joined no Agent preset, and nothing
at all in a composition without the preset registry. The SDK, headless,
and ACP applications create such Agents, so the provider's default
configuration and the Computer Use bundle had no effect there, and no
configuration supplied `cua_run_code` to a Host whose model calls
ordinary tools directly.

The preset registry becomes an optional dependency of the provider. Only
Agents on the configured preset receive raw `cua`; every other Agent
receives `cua_run_code`, and the provider recomputes each live Agent's
tool form when the registry loads or unloads. `agentPreset: false` still
registers raw `cua` globally and creates no program runtime.

The assertion that an Agent without a preset has neither tool changes
with the behavior. New unit cases cover a composition without the
registry, the registry loading and unloading, and a preset-free Loader
composition that runs programs; a recorded SDK Session covers the
assembled request and program execution on `dsh --profile sdk`.

The upgrade guide lists the migration for compositions without presets:
`agentPreset: false` keeps raw `cua`, including `tools.cua` under the PTC
tool executor.
2026-11-12 15:30:38 +08:00
sjw1231 efc62d7b06 fix(bash,pwsh,fs,ptc): reject unadvertised arguments before pairing and approval
Without a sandboxing backend, a lone sandbox_permissions or justification
failed the pairing check and asked the model to add the other field, and
bash/pwsh checked a disabled run_in_background only after an escalation
approval. Reject unadvertised escalation fields and a disabled background
request during argument validation in bash, pwsh, write/edit/apply_patch,
and run_code, and name both escalation fields in the message. Update the
upgrade guide to identify rc.2 shell records by message.

Refs #7869
2026-11-12 15:29:38 +08:00
Dudu-0223 8a627550f3 Merge master into fix/cua-partial-ax 2026-11-12 15:26:59 +08:00
sjw1231 0fe47c32ba docs(upgrade-guide): record consolidated shell and read_image error codes
dsh-v0.2.2-rc.2 shipped JOB_BACKGROUND_DISABLED, IMAGE_UNSUPPORTED_MODEL,
and SANDBOX_ESCALATION_UNAVAILABLE for unadvertised bash/pwsh
sandbox_permissions, so their replacement is a released break.

Refs #7869
2026-11-12 14:59:04 +08:00
sjw1231 c7d8f522fd Merge remote-tracking branch 'origin/master' into claude/tool-errors-consolidation-5e8dbe 2026-11-12 14:53:14 +08:00
Ruilin Geng 5402a0c46a Merge pull request #8344 from deepseek-harness/docs/packages-readme-budget
docs: raise the packages/README.md word ceiling to 1,100
2026-11-12 14:50:46 +08:00
Dudu-0223 79112d796d fix(cua): preserve failed AX scope discovery 2026-11-12 14:45:07 +08:00
Dudu-0223 54f7af09ff fix(cua): isolate invalid AX branches during observation 2026-11-12 13:58:36 +08:00
sjw1231 c3953b65d7 Merge remote-tracking branch 'origin/master' into claude/tool-errors-experimental-c89252
# Conflicts:
#	packages/experimental/cua/README.i18n.yaml
#	packages/experimental/cua/README.md
#	packages/experimental/cua/README.zh.md
#	packages/experimental/cua/src/index.ts
2026-11-12 13:58:19 +08:00
a39d44b5dc feat(session): add host reading status to SessionStatus (#6858)
* ✨ feat(session): persist and synchronize read state

* 🌐 fix(client): complete Japanese labels after base update

* 📝 docs: refresh session read-state dependency graph

* 🧪 test(web): align session menu and read-state snapshots

* 🌐 fix(session): complete Japanese plugin metadata

* 🧪 test(web): distinguish unread from pending user input

* 🐛 修复会话阅读状态的故障隔离与生命周期

* 🐛 修复阅读状态依赖检查并补齐自动已读覆盖

* 🐛 恢复会话绿点并移除未读标题加粗

* ♻️ Keep shared session reading state in Host memory

* 🌐 Complete reading-state metadata for supported locales

* 📝 Refresh module graph after removing storage dependency

* 🧹 Move storage dependency policy out of memory-only reading

* 🐛 Wait for sidebar catalog before replay navigation

* 🔧 Give Host TypeScript checks 8 GiB of heap

* ✅ Align Host heap checks and Windows diagnostics

* ♻️ Keep CI repairs outside the session reading PR

* 🐛 Show failed unread turns with an error indicator

* 🔧 Adjust npm layout budget for the reading package

* 🧪 Scope projection stream assertions to observed units

* 🧪 Scope permission and title assertions to their projections

* ♻️ Simplify session reading updates to explicit positions

* 🐛 Align session reading package with release version

* 🧪 Load reading state in LiveShare viewer fixtures

* 🧹 Remove persistence-only type link from memory PR

* 🧪 Align context menu expectations with reading actions

* 🐛 Sync reading package with the release version

* 🧪 Include turn boundaries in session summary expectations

* ♻️ Derive reading failure facts from Host events instead of a projection

The reading service took each completion from the Agent turn-boundary
projection, which forced a stateVersion bump and put that projection's whole
internal state on the wire for every Session list row. The service now records
`turn/end` itself, so `core/agent` and the persisted projection schema are
untouched.

History that ended before the service started raises no reminder, which keeps
"existing history reads as read" without a startup scan. The failure flag
therefore describes only turns this Host observed: marking a Session whose last
turn failed before a restart shows the ordinary unread reminder.

* 🐛 Preserve manual unread until explicit Session interaction

* 🧪 Align cold Session reading snapshot with unloaded title

* 🔖 chore(session): align session-read-state with 0.2.2-rc.2

Master moved the root and every released manifest to 0.2.2-rc.2, but the
new dsh-session-read-state package still declared 0.2.2-rc.1, failing
constraints, verify-version-sync, verify-npm-install-layout, and
release:verify after the master merge.

* ♻️ refactor(gateway): recognize Remote stream carrier loss by error code

RemoteStream now decides whether a generation end or failure is a
retryable carrier loss by the stable code 'gateway/carrier-lost' instead
of `instanceof RemoteStreamCarrierError`. RemoteStreamCarrierError keeps
working and carries that code, so existing callers are unchanged, while a
Client feature package can return a coded Error from `ended` without
importing the class. The new RemoteStreamCarrierFailure type describes
such errors; terminal-controller classifies disconnects the same way.

* ♻️ refactor(session): move Session reading into ui-session-status

Fold the reading feature into the single package
packages/client/ui-session-status and delete session-read-state.

- Host face: SessionStatusService keeps in-memory reading records and
  serves the sessionStatus Remote namespace (mark, follow) with
  session-status/* error codes; its service key is registered only for
  Gateway discovery and is not declared on Context.
- Client face: a package-internal reading model follows the Host stream
  through RemoteSnapshotStream; ctx.uiSession.sessionStatus folds the
  records into completionUnread and completionFailed and exposes mark and
  readingReady; main-view acknowledgement and the
  session-status/read-intent event live here. No reading service or type
  is exported.
- verify-client-packages lets a packages/client feature package request
  packages/api rows through dsh.client.external; feature-to-feature
  requests stay rejected.
- ui-workspace, ui-conversation, bundles, remotes, LiveShare, the client
  test runtime, docs, Agent Notes, and the upgrade guide follow.

* ♻️ refactor(session): clear manual unread only when the main view switches to the Session

Remove the session-status/read-intent event. ui-session-status now clears an
existing manual unread mark when the main view switches to a different
Session, including the first selection after a page load, once the reading
baseline is ready and the body arrives. Window focus, visibility changes,
a replaced binding for the same Session, and activity in the open Session
preserve manual unread.

ui-conversation returns to master (only the ui-session-status client
tsconfig reference remains), and ui-workspace navigation no longer emits
the event. Tests, the session-reading Web e2e case, READMEs, and the
reading Agent Note follow the new rule.

* 🐛 fix(session): address the Session status review findings

- Open the reading stream only while ctx.remoteAccess allows
  sessionStatus/follow, so a LiveShare viewer opens no owner-only stream,
  keeps readingReady false, and logs no synchronization failure; access
  changes start or stop the stream.
- Hide the unacknowledged completion of the Session the visible, focused
  main view retains; manual marks stay visible, completionFailed follows
  completionUnread, and the reminder returns on blur, hiding, or a switch.
- Declare ctx.sessionStatus on Context and restore its SERVICE_PAGE and
  SERVICE_ROLES entries; the service and SessionRead* types document on
  docs/subsystems/web-client.md, which now owns the reading section with
  the failed field.
- Document that a Host plugin reload can leave the Client with a terminal
  error until a page reload; drop the redundant types import and the
  unused publish() result.
- Archived Sessions read as read and offer no reading mark in the row
  menu or the toggle-read shortcut.
- session.toggleRead names the open dialog, open panel, or archived
  Session that blocks it instead of asking to select a Session.
- isRemoteStreamCarrierFailure rejects a RemoteError from the Host even
  when it carries gateway/carrier-lost; the code is Client-local.
- ./types is types-only like ui-trajectory, and files no longer ship
  lib/types JavaScript.

* 🐛 fix(session): close the remaining Session status review gaps

- The Gateway Client exports isRemoteStreamCarrierFailure, and the
  terminal view uses it, so a Host RemoteError carrying the carrier code
  shows as failed rather than disconnected.
- Each access grant's reading stream carries a token: frames a revoked
  or superseded stream still delivers are discarded, and cleanup waits
  for disposal before leaving reading unavailable unless a newer grant
  is active.
- The status table hides the viewed Session's natural reminder only
  while that Session is open; the panel case is a documented limitation.
- The README limitation and the upgrade guide state that only the
  main-view switch rule, including a reload restore, clears manual
  unread automatically.
- Add the missing blank line before the next heading in the web-client
  reading section.

* ♻️ refactor(session): install reading under the Session status table

- apply returns to master's form plus one line: UiSessionStatus is the
  root, published as the useSessionStatus source, and installReading()
  from the new src/client/read.ts follows Host reading records into it.
  UiSessionStatus takes master's three constructor parameters and
  creates its own SessionReadModel as the package-internal `reading`
  member; installSessionStatus is removed and acknowledge.ts stays a
  separate file.
- The viewed Session's snapshot subscription republishes the table only
  when its openState changes, so streamed events do not rebuild it.
- Remove the obsolete Dev Note sentence about failure outcomes.
- session.toggleRead passes when the Peer may not mark reading, matching
  the row menu, and reports readingUnavailable only while unsynchronized.

---------

Co-authored-by: imccyu <[email protected]>
Co-authored-by: imccyu <[email protected]>
2026-11-12 05:35:57 +00:00
audit 49d112aa67 docs: raise the packages/README.md word ceiling to 1,100
The package group table holds 49 rows and has grown to 992 of its 994 words since the 2026-08-25 rebuild, so the next group row cannot fit; the connector group (`packages/connector/`) needs 11 words. The ceiling and the target in docs/AGENTS.md move together to 1,100, which leaves room for several group rows at the current row length.
2026-11-12 11:51:12 +08:00
sjw1231 cf92ab9aac Merge remote-tracking branch 'origin/master' into claude/tool-errors-experimental-c89252 2026-11-11 19:57:11 +08:00
Yichen Jiang c4dd37eb53 Merge remote-tracking branch 'origin/master' into feat/cua-mcp 2026-11-11 18:26:53 +08:00
Yichen Jiang d5e02356ea refactor(cua-mcp): reset by releasing the program environment through the runtime's owner release
cua_reset keeps its effect: only the program process is replaced, while the connection's Agent, its native connection, and its consent decisions stay. The PTC program-tool factory no longer carries a reset operation, so packages/core/tool-executor-ptc is unchanged against master. ctx.cuaPrograms exposes release(agent), the owner release of the provider's program runtime, and the MCP frontend orders its own calls around it: it cancels the running program, releases the environment, answers after the cancelled program has settled, and holds back programs that arrive during a reset. A failed release answers with an error that asks for another cua_reset; the runtime rejects programs until a release succeeds. The reset result names cua.getApp for selecting applications again.
2026-11-11 18:19:43 +08:00
Jiawei Song 0b8ee3b709 Merge pull request #8168 from deepseek-harness/refactor/tool-errors-mcp
feat(mcp,web,skill,cordis,plugin,ptc): give MCP, web, skill, inspect, plugin, and run_code tool failures error codes
2026-11-11 18:16:03 +08:00
Yichen Jiang b2a46d2e96 Merge remote-tracking branch 'origin/master' into feat/cua-mcp 2026-11-11 17:51:30 +08:00
Yichen Jiang 72c2a4cb01 Merge branch 'master' into fix/forge-ptc-binding 2026-11-11 17:41:54 +08:00
Yichen Jiang 75f9f6ef98 Merge remote-tracking branch 'origin/master' into feat/cua-mcp
master removed the Python PTC runtime (#8307) and rewrote three bilingual
documents this branch also edits.

Conflicts:
- docs/capability-seams.i18n.yaml, packages/core/tool-executor-ptc/README.i18n.yaml,
  and packages/experimental/README.i18n.yaml: both sides re-recorded the
  translation pairing records. The merged documents were reviewed in both
  languages and the three records recorded again from them.
2026-11-11 17:32:17 +08:00
Yichen Jiang 6234871e8d docs(forge-session): 更新模块图中的 dsh-llm 依赖
评审修复为 forge-session 新增了 @deepseek-ai/dsh-llm peer 依赖,
重新生成 docs/module-graph.md 与中文版。
2026-11-11 17:29:21 +08:00
sjw1231 75f5b13132 Merge remote-tracking branch 'origin/master' into claude/tool-errors-mcp-f5e887
# Conflicts:
#	docs/persistence-schema.json
2026-11-11 17:06:13 +08:00
Yichen Jiang 74c20de23f Merge remote-tracking branch 'origin/master' into fix/forge-ptc-binding
# Conflicts:
#	packages/experimental/forge-session/tests/loader-composition.spec.ts
2026-11-11 16:54:24 +08:00
imccyu 5e7206f6c6 refactor(exports): retire obsolete subpaths with compatible brand APIs (#8215)
* refactor(exports): consolidate type entries and remove obsolete subpaths

* fix(exports): preserve constructors while retiring brand subpaths

* fix(exports): retain guide relocation after parent squash
2026-11-11 08:39:14 +00:00