Commit Graph

2562 Commits

Author SHA1 Message Date
ZiyaZhang
47949244c8 feat(desktop): trace signal detection + tri-view badges
Adds a small signal-detection layer over trace payloads and surfaces
three kinds of semantic signals inline in the trace tri-view (Timeline
/ Graph / turn footer chips) so a researcher can spot repetitive
tool-call loops, redundant identical calls, and plan-completion beats
without hand-scanning the raw log:

- loop-detected  — three or more repeats of the same tool.method
                   signature inside a window, badge in Timeline gutter
                   + colored ring on the Graph node
- redundant-call — identical (tool, arg-hash) call twice without any
                   state change in between, badge + subdued styling
                   so it stays advisory not alarmist
- plan-* chips   — plan/subplan step-complete beats surfaced above the
                   assistant body in the turn footer, wired through
                   the finishTurnContainer tail

Pure rendering; no wire-format changes needed on the runtime side —
signal detection is fixture-driven off the same payload the tri-view
already consumes. Companion RFC L-2 in docs/upstream-ledger.md asks
the runtime to emit these signals natively rather than deriving them
in the shell, so once L-2 lands the shell will consume upstream signals
and this detector becomes a fallback.

Files:
  src/renderer/trace-signal-detect.js       new  (loop/redundant/plan)
  src/renderer/trace-tri-view.js            +24  (wire detector output)
  src/renderer/trace-timeline.js            +39  (badge in gutter)
  src/renderer/trace-graph.js               +30  (colored ring)
  src/renderer/renderer.js                  +81  (finishTurnContainer chips)
  src/renderer/index.html                    +1  (one script tag)
  src/renderer/style.css                    +58  (badge/ring/chip rules)
  docs/upstream-ledger.md                  +121  (append L-2 RFC)
  scripts/qa-trace-signals-fixture.mjs     new  (headless SVG proof)
  scripts/qa-trace-signals-shoot.mjs       new  (CDP live shoot)
  docs/trace-signals-shoot/*.html          new  (3 fixture-driven shots)
  test/trace-signal-detect.test.js         new  (detector unit tests)
  test/trace-signal-overlay.test.js        new  (renderer overlay tests)

Test suite: 1668/1668 pass (17 new). Fixture-driven signals-01-timeline-
loop.html regenerated byte-identical from the merged HEAD.
2026-07-19 00:57:19 -07:00
Tianyi Cui
c05f1b6dd2 fix(desktop): use model catalog config shape 2026-07-19 12:02:51 +08:00
ZiyaZhang
ed6678f51e fix(desktop): compact artifact rows + auto-group 2026-07-18 14:01:11 -07:00
ZiyaZhang
69687895fa docs(desktop): land final walkthrough recording
Adds the 3.6 MB take-3 walkthrough mp4 that README already references
via a poster image, and replaces the "coming in a follow-up commit"
placeholder line with a real link (poster now click-through to the
video, caption points at the same file).

Path: examples/desktop/docs/demo-shots/showcase-2026-07-18/
demo-walkthrough.mp4

No source or config changes; the shell tree from a3ca492a is byte-
identical to what it was, this commit just fills in the recording
slot the previous docs commit deferred.
2026-07-18 13:12:00 -07:00
ZiyaZhang
03827a2156 docs(desktop): pages & features guide + Quick Start
Expanded README landing page for first-time cloners: Pages & Features
guide walks through each of the 14 UI surfaces (chat, trace timeline,
subagent panel, context surface, rubrics, plugins, compaction, budget,
etc.) with 2-4 sentences on what each page shows and why it exists.
Feature highlights section lists 10 concrete affordances a plugin
author or researcher would want to know are there.

Quick Start rewritten for the cold-clone path:
- two-step pnpm install (repo root for tsx, then examples/desktop for
  Electron) — resolves the P0-5 install failure a fresh clone hits
- HARNESS_DEV layouts documented: in-repo (default when cloning
  deepseek-harness), sibling deepseek-harness-dev/ (original dev
  workflow), DSH_DEV_ROOT env (custom layouts)
- .env locations described relative to the runtime root rather than
  hardcoded paths
- Profiles table reordered with stdio-echo first (keyless, works on
  master); daemon-echo and daemon-vibe-echo marked 'Not yet available
  on master' with a note pointing at the integration worktree

Facts-only tone; the only referenced assets are 01-overview.png,
03-chat.png, and video-poster.png in docs/readme-shots/ — all present
in the release tree.
2026-07-18 12:59:50 -07:00
ZiyaZhang
e8f5c0b51b feat(desktop): DSH Electron desktop shell — harness internals visualized
Minimal Electron shell over the DSH JSON-RPC runtime — a first-look at
what a ChatGPT.app-style host on top of the DeepSeek Harness looks
like, with the harness's normally-invisible internals (trace timeline,
context surface, subagent tree, compaction, plugin registry, rubrics)
brought forward as first-class UI surfaces so plugin authors and
researchers can see what the agent is actually doing.

Runs against three keyless-to-live profiles (stdio-echo works on
master out of the box; daemon-echo / daemon-vibe-echo activate once
the daemon-demo lands; stdio-deepseek and daemon-vibe hit the real
DeepSeek API when you supply a key). HARNESS_DEV auto-resolves to the
in-repo runtime when this shell ships under examples/desktop/, so a
fresh clone launches without config; env DSH_DEV_ROOT overrides for
custom layouts, and a sibling deepseek-harness-dev/ checkout is the
original dev workflow.

Cold-clone gate (P0 fixes for first-time-clone usability):
- HARNESS_DEV: 3-candidate resolver (env → walk-up in-repo marker →
  sibling), unit-tested via mock fs so ordering is locked without
  needing either real layout on disk.
- config yml leaves rewritten at assemble time so the sibling-clone
  paths (../../deepseek-harness-dev/examples/echo-agent/…) become
  the in-repo paths (../../echo-agent/…) in the released tree —
  source yml stays usable for local dev, released tree ships a
  working shape.
- pnpm-workspace.yaml allowBuilds.electron = true (was placeholder).
- missing-key card in stdio-deepseek offers a one-click switch to
  stdio-echo (the keyless profile that works on master) rather than
  daemon-echo (blocked on the not-yet-shipped daemon-demo).
- assemble-oss-release.sh rewrites the source-side breadcrumb name
  'dsh-desktop-demo' → 'dsh-desktop' for the released package.json.

FOUC guard on the onboarding gate (41fc5df carried) keeps the
first-launch splash from flashing before the runtime probe finishes.

Test suite (1634 tests in source, 3990 in the runtime repo) covers
resolver ordering, renderer classifiers, trace timeline shape,
compaction diff rendering, rubric parity, and the missing-key
onboarding paths.
2026-07-18 12:59:34 -07:00
Tianyi Cui
67053d1cf6 Merge pull request #285 from deepseek-harness/codex/simp-unify-agent-session-id
refactor: unify agent and session identity
2026-07-19 03:17:13 +08:00
Tianyi Cui
b1f453afa8 Merge remote-tracking branch 'origin/master' into codex/simp-unify-agent-session-id 2026-07-19 03:11:49 +08:00
Tianyi Cui
01ec1a5e5f Merge pull request #284 from deepseek-harness/codex/simp-agent-entry-state
refactor: remove agent entry mirror
2026-07-19 03:11:25 +08:00
Tianyi Cui
5767a8d467 Merge branch 'codex/simp-agent-entry-state' into codex/simp-unify-agent-session-id 2026-07-19 03:04:19 +08:00
Tianyi Cui
1e4de0deaa fix(sdk): pin generated project build tool 2026-07-19 03:02:42 +08:00
Tianyi Cui
31760dd587 Merge branch 'codex/simp-agent-entry-state' into codex/simp-unify-agent-session-id 2026-07-19 02:55:05 +08:00
Tianyi Cui
43caa85f66 Merge remote-tracking branch 'origin/master' into codex/simp-agent-entry-state 2026-07-19 02:53:31 +08:00
Tianyi Cui
e8ae22d547 Merge pull request #283 from deepseek-harness/codex/simp-compaction-surface
refactor: narrow compaction surface
2026-07-19 02:53:16 +08:00
Tianyi Cui
eb47d730b1 Merge branch 'codex/simp-agent-entry-state' into codex/simp-unify-agent-session-id 2026-07-19 02:49:13 +08:00
Tianyi Cui
4474675a25 Merge branch 'codex/simp-compaction-surface' into codex/simp-agent-entry-state 2026-07-19 02:49:13 +08:00
Tianyi Cui
71be1755f6 Merge remote-tracking branch 'origin/master' into codex/simp-compaction-surface 2026-07-19 02:47:31 +08:00
Tianyi Cui
402ecd2381 Merge pull request #282 from deepseek-harness/codex/simp-trim-hook-snapshot-noise
test: trim PostToolUse snapshot retries
2026-07-19 02:47:06 +08:00
Tianyi Cui
0c84c2a842 Merge branch 'codex/simp-agent-entry-state' into codex/simp-unify-agent-session-id 2026-07-19 02:39:09 +08:00
Tianyi Cui
8209532bb4 Merge branch 'codex/simp-compaction-surface' into codex/simp-agent-entry-state 2026-07-19 02:39:09 +08:00
Tianyi Cui
255dacd301 Merge branch 'codex/simp-trim-hook-snapshot-noise' into codex/simp-compaction-surface 2026-07-19 02:39:08 +08:00
Tianyi Cui
d2b2f1245f Merge remote-tracking branch 'origin/master' into codex/simp-trim-hook-snapshot-noise 2026-07-19 02:36:11 +08:00
Tianyi Cui
6597af858b Merge pull request #303 from deepseek-harness/codex/simp-drop-unused-schema-default
docs: retain dynamic tool schema defaults
2026-07-19 02:34:59 +08:00
Tianyi Cui
900fbc1ad9 Merge remote-tracking branch 'origin/master' into codex/simp-drop-unused-schema-default 2026-07-19 02:28:15 +08:00
Tianyi Cui
a6a93bf364 Merge pull request #296 from deepseek-harness/codex/simp-hide-llm-adapter-helpers
refactor: hide LLM adapter helpers
2026-07-19 02:27:26 +08:00
Tianyi Cui
08c17ef48b Merge remote-tracking branch 'origin/master' into codex/simp-hide-llm-adapter-helpers 2026-07-19 02:18:50 +08:00
Tianyi Cui
19cdad4eca Merge pull request #295 from deepseek-harness/codex/simp-prune-llm-contract
refactor: prune unused LLM contract fields
2026-07-19 02:17:48 +08:00
Tianyi Cui
7b076a1e01 Merge remote-tracking branch 'origin/master' into codex/simp-prune-llm-contract 2026-07-19 02:10:25 +08:00
Tianyi Cui
c0eabdd1cb Merge branch 'codex/simp-agent-entry-state' into codex/simp-unify-agent-session-id 2026-07-19 02:09:18 +08:00
Tianyi Cui
7b17b88dab Merge branch 'codex/simp-compaction-surface' into codex/simp-agent-entry-state 2026-07-19 02:09:18 +08:00
Tianyi Cui
1da4cde339 Merge branch 'codex/simp-trim-hook-snapshot-noise' into codex/simp-compaction-surface 2026-07-19 02:09:18 +08:00
Tianyi Cui
a5b369f648 Merge remote-tracking branch 'origin/master' into codex/simp-trim-hook-snapshot-noise 2026-07-19 02:08:45 +08:00
Tianyi Cui
8518dd31c7 Merge pull request #280 from deepseek-harness/codex/simp-shared-acp-test-launcher
refactor: share the ACP test launcher
2026-07-19 02:07:50 +08:00
Tianyi Cui
f65f4b82d7 Merge branch 'codex/simp-agent-entry-state' into codex/simp-unify-agent-session-id
# Conflicts:
#	docs/config-catalog.md
#	docs/cordis-catalog/services.md
#	packages/core/agent-loop/README.md
#	packages/core/agent-loop/src/agent.ts
#	packages/core/agent-loop/src/index.ts
#	packages/core/agent-loop/tests/agent.spec.ts
#	packages/core/agent-loop/tests/contract-regressions.spec.ts
#	website/zh-CN/api/harness/agent-loop.md
2026-07-19 01:54:03 +08:00
Tianyi Cui
a45f0d73f3 Merge branch 'codex/simp-compaction-surface' into codex/simp-agent-entry-state 2026-07-19 01:47:42 +08:00
Tianyi Cui
3c03ca8a3c Merge branch 'codex/simp-trim-hook-snapshot-noise' into codex/simp-compaction-surface 2026-07-19 01:47:42 +08:00
Tianyi Cui
bfd67e54e4 Merge branch 'codex/simp-shared-acp-test-launcher' into codex/simp-trim-hook-snapshot-noise 2026-07-19 01:47:42 +08:00
Tianyi Cui
2704cab46f Merge remote-tracking branch 'origin/master' into codex/simp-shared-acp-test-launcher 2026-07-19 01:44:38 +08:00
Tianyi Cui
8c7382bc77 Merge pull request #279 from deepseek-harness/codex/simp-snapshot-fixture-inventory
refactor: derive snapshot session fixtures from disk
2026-07-19 01:43:50 +08:00
Tianyi Cui
c866aa8ca6 Merge remote-tracking branch 'origin/master' into codex/simp-snapshot-fixture-inventory 2026-07-19 01:33:26 +08:00
Tianyi Cui
417248eed8 Merge pull request #265 from deepseek-harness/parallel-tool-call
feat(agent-loop): run safe tool calls in parallel
2026-07-18 20:46:18 +08:00
Tianyi Cui
78f68dbbb9 docs(agent-loop): track scheduler drain follow-up 2026-07-18 20:35:58 +08:00
Tianyi Cui
3b52d216f3 Merge branch 'master' into parallel-tool-call 2026-07-18 20:18:24 +08:00
Tianyi Cui
29d5322e23 Merge pull request #369 from deepseek-harness/codex/session-persistence-events-catalog
docs: expand session persistence event catalog
2026-07-18 20:17:03 +08:00
Tianyi Cui
2b4641799e docs: expand session persistence event catalog 2026-07-18 15:11:51 +08:00
Tianyi Cui
50f0291b93 Merge latest origin/master into parallel-tool-call
# Conflicts:
#	docs/architecture.md
#	examples/acp-agent/tests/snapshots/bash-spill/session.jsonl
#	examples/acp-agent/tests/snapshots/escalation-approved/session.jsonl
#	examples/acp-agent/tests/snapshots/escalation-rejected/session.jsonl
#	examples/acp-agent/tests/snapshots/hook-cc-pretool-ask/session.jsonl
#	packages/core/agent-loop/src/loop.ts
2026-07-18 15:09:39 +08:00
Tianyi Cui
21ec178841 docs: tighten parallel tool-call prose 2026-07-18 14:59:26 +08:00
Tianyi Cui
7d9f0431fc Merge remote-tracking branch 'origin/master' into codex/simp-drop-unused-schema-default 2026-07-18 14:52:54 +08:00
Tianyi Cui
45600e74e4 Merge branch 'codex/simp-prune-llm-contract' into codex/simp-hide-llm-adapter-helpers 2026-07-18 14:52:54 +08:00
Tianyi Cui
90cbe2573b Merge remote-tracking branch 'origin/master' into codex/simp-prune-llm-contract 2026-07-18 14:52:54 +08:00