Commit Graph

3676 Commits

Author SHA1 Message Date
Tianyi Cui
13982e98e1 Merge pull request #458 from deepseek-harness/fix/pre-push-dsh-home-env-leak
test(workspace-context): stub DSH_HOME in default-home label test
2026-07-21 16:16:45 +08:00
Yichen Jiang
49a9bca9f6 fix: validate compaction config pairs 2026-07-21 14:49:57 +08:00
Turtle
a0268d2509 fix(compact-basic): replay conversation prefix so summarization reuses KV cache
Automatic compaction fires mid-conversation, right after the loop warmed
the provider's KV cache with the last routed request. The default
summarizer then issued a separate request whose prefix shared nothing
with that warm request — a bespoke summarizer system prompt followed by
the older history flattened to one rendered transcript string — so a
differing first token invalidated the entire cached prefix and every
compaction re-processed the whole replayed history twice.

Move the compaction directive from the FRONT (a fresh system prompt) to
the END (a trailing user message), and replay the last routed request's
own system prompt, tools, message prefix, and shadowed-region messages
verbatim via session.requestHeader() + deriveEventMessage. The auxiliary
call is now a genuine prefix-extension of the warm request, so the
provider reuses the cached tokens up to the trailing instruction.

SummarizationInput carries the replayed prefix instead of a flat string;
the now-unused renderTranscript/renderContentBlocks path is removed with
its spec. Cache reuse is best-effort (head compaction guarantees a hit;
a mid-range compaction or a differently-routed summarizer forgoes it),
correctness is not.
2026-07-21 13:55:22 +08:00
Tianyi Cui
bc60b9ffe8 fix(lsp): cancel blocked document opens 2026-07-21 13:52:15 +08:00
Tianyi Cui
2fd995bf3c fix(lsp): align operations and harden lifecycle 2026-07-21 13:29:40 +08:00
Huanqi Cao
5d6db0cd56 fix: stub DSH_HOME in 'labels the default DSH home' test
The test 'labels the default DSH home as ~/.dsh when HOME points at the
configured default' mocks node:os to return a temporary home directory
and expects discoverBaselineInstructionFiles to fall back to the default
~/.dsh path. However, when DSH_HOME is externally set (e.g. in the DSH
agent environment), resolveDshHome(undefined) reads that external value
instead of falling back to defaultDshHome(), causing the test to look for
AGENTS.md in the wrong directory and return an empty result.

Stub DSH_HOME to undefined so the test controls the full resolution path.
2026-07-21 13:08:34 +08:00
Yichen Jiang
7e43f8661c Merge branch 'master' into fix/acp-subagent-cwd 2026-07-21 12:29:50 +08:00
Chinesezjc
6c34d69c51 Merge remote-tracking branch 'origin/master' into chore/doc-sync-single-pass
# Conflicts:
#	docs/development.i18n.yaml
#	package.json
2026-07-21 11:29:49 +08:00
Chinesezjc
6fc7dd4c02 chore(gates): route doc-sync through the run-gates scheduler
pnpm run doc-sync was a serial &&-chain of 24 pnpm run subcommands; the
24 script bodies finish in ~34s while the chain takes ~3min, all wrapper
overhead. Add a doc-sync mode to scripts/run-gates.ts expanding to
docSyncLeafGates() (concurrency capped at 4 like pre-push: several doc
gates each build a full ts.Program) and point the package script at it,
making the leaf list the single source of truth for the member set.

Consolidating the two lists surfaced drift: verify-cordis-api joined the
package.json chain with the runtime API catalog but was never added to
docSyncLeafGates, so CI and pre-push never gated that catalog's
freshness. Add the missing leaf.
2026-07-21 11:07:50 +08:00
Yichen Jiang
b6f6c58435 Merge remote-tracking branch 'origin/master' into worktree/routed-model-compaction-policy
# Conflicts:
#	.agents/notes/implemented/architecture/2026-07-10-after-call-compaction-pressure-and-overflow-recovery.i18n.yaml
#	.agents/notes/implemented/architecture/2026-07-10-after-call-compaction-pressure-and-overflow-recovery.md
#	.agents/notes/implemented/architecture/2026-07-10-after-call-compaction-pressure-and-overflow-recovery.zh.md
#	docs/cordis-catalog/events.md
#	docs/cordis-catalog/services.md
#	docs/event-producer-consumer.md
#	examples/headless-agent/tests/harness.ts
#	examples/repl-agent/cordis.yml
#	packages/compact/compact-basic/README.md
#	packages/compact/compact-basic/src/index.ts
#	packages/compact/compact-basic/tests/compact-basic.spec.ts
#	packages/compact/compact-basic/tests/loader-composition.spec.ts
#	packages/cordis/tool-cordis/src/api-catalog.ts
#	packages/llm/README.md
#	packages/llm/llm-deepseek/src/adapter.ts
#	packages/llm/llm-pi-ai/src/adapter.ts
#	packages/llm/llm/README.md
#	packages/llm/llm/src/index.ts
#	scripts/gen-cordis-catalog.ts
#	website/zh-CN/api/harness/events.md
#	website/zh-CN/api/harness/llm.md
#	website/zh-CN/api/harness/token-meter.md
#	website/zh-CN/guide/config.md
2026-07-21 10:17:55 +08:00
Yichen Jiang
a37e2e0f16 Merge remote-tracking branch 'origin/master' into worktree/tui-session-controls
# Conflicts:
#	docs/config-catalog.md
#	docs/event-producer-consumer.md
#	docs/module-graph.md
#	packages/ui/acp/src/index.ts
#	packages/ui/tui/README.md
#	packages/ui/tui/src/index.ts
#	packages/ui/tui/tests/harness.ts
#	packages/ui/tui/tests/plugin-shape.spec.ts
#	packages/ui/tui/tests/snapshots/disposed-terminal.expected.txt
#	packages/ui/tui/tests/snapshots/errors-and-help.expected.txt
#	packages/ui/tui/tests/tui.spec.ts
2026-07-21 10:15:49 +08:00
Dudu-0223
2a55f6b684 Merge origin/master into lsp 2026-07-21 09:57:36 +08:00
Tianyi Cui
fe42baeaa3 Merge codex/invariant-service-seam into codex/invariant-service-review-fixes
# Conflicts:
#	scripts/test-invariants.spec.ts
2026-07-21 01:39:19 +08:00
Tianyi Cui
d50e6d4b8e test(invariants): include goal session topology 2026-07-21 01:38:20 +08:00
Tianyi Cui
7eee0b48b7 Merge codex/invariant-service-seam into codex/invariant-service-review-fixes
# Conflicts:
#	.agents/notes/implemented/architecture/2026-07-19-package-invariant-runtime-contracts.i18n.yaml
#	scripts/test-invariants.ts
2026-07-21 01:25:18 +08:00
Tianyi Cui
d3ae708384 Merge origin/master into codex/invariant-service-seam
# Conflicts:
#	docs/module-graph.md
2026-07-21 01:23:19 +08:00
Tianyi Cui
7677d49c93 test(snapshot): cover session-scoped sandbox roots 2026-07-21 01:16:29 +08:00
Tianyi Cui
55ef21d9d5 Merge origin/master into codex/invariant-service-seam
# Conflicts:
#	docs/config-catalog.md
#	docs/event-producer-consumer.md
#	docs/module-graph.md
#	packages/examples/agent-spine-demo/README.md
#	packages/examples/agent-spine-demo/package.json
#	packages/examples/agent-spine-demo/src/index.ts
#	packages/examples/tui-demo/package.json
#	packages/support/invariants/src/scoped-events.generated.ts
#	packages/ui/acp/package.json
#	packages/ui/tui/package.json
#	packages/ui/tui/tests/tui.spec.ts
#	pnpm-lock.yaml
2026-07-21 01:13:28 +08:00
Tianyi Cui
dc874a90bd Merge remote-tracking branch 'origin/master' into codex/session-scoped-sandbox-roots 2026-07-21 01:01:00 +08:00
Tianyi Cui
c17ef5e8e1 Merge remote-tracking branch 'origin/master' into codex/session-scoped-sandbox-roots 2026-07-21 00:56:24 +08:00
Tianyi Cui
9a5c81f9e5 Merge pull request #419 from deepseek-harness/codex/goal-rfc-rollup
docs(agent-note): record implemented goal execution stack
2026-07-21 00:56:09 +08:00
Tianyi Cui
9ed4ce8267 Merge remote-tracking branch 'origin/master' into codex/session-scoped-sandbox-roots
# Conflicts:
#	packages/examples/agent-spine-demo/package.json
#	pnpm-lock.yaml
2026-07-21 00:55:48 +08:00
Tianyi Cui
cf4f7bbb4b Merge remote-tracking branch 'origin/master' into codex/goal-rfc-rollup 2026-07-21 00:51:59 +08:00
Tianyi Cui
bb85b384f1 Merge pull request #417 from deepseek-harness/codex/ralph-tool
feat(workflow): add fresh-agent Ralph tool
2026-07-21 00:51:42 +08:00
Tianyi Cui
167a5e95e0 Merge codex/invariant-service-seam into codex/invariant-service-review-fixes
# Conflicts:
#	.agents/notes/implemented/architecture/2026-07-19-package-invariant-runtime-contracts.i18n.yaml
#	scripts/test-invariants.spec.ts
#	scripts/test-invariants.ts
2026-07-21 00:47:02 +08:00
Tianyi Cui
9f5415fc6e Merge remote-tracking branch 'origin/master' into codex/ralph-tool 2026-07-21 00:46:27 +08:00
Tianyi Cui
6bcc9fbf32 Merge pull request #415 from deepseek-harness/codex/goal-commands
feat(goal): add human /goal command
2026-07-21 00:46:07 +08:00
Tianyi Cui
4e7a687c0b Merge origin/master into codex/invariant-service-seam
# Conflicts:
#	docs/architecture.md
#	docs/capability-seams.md
#	docs/cordis-catalog/services.md
#	docs/event-producer-consumer.md
#	docs/module-graph.md
#	packages/cordis/tool-cordis/src/api-catalog.ts
#	packages/support/invariants/package.json
#	packages/support/invariants/src/scoped-events.generated.ts
#	packages/support/invariants/tests/invariants.spec.ts
#	packages/support/invariants/tsconfig.json
#	pnpm-lock.yaml
2026-07-21 00:44:39 +08:00
Tianyi Cui
ec98bb4318 Merge remote-tracking branch 'origin/master' into codex/session-scoped-sandbox-roots 2026-07-21 00:44:38 +08:00
Tianyi Cui
ff21f91a39 fix(sandbox): resolve workspace roots per session 2026-07-21 00:44:28 +08:00
Tianyi Cui
91822398b6 Merge remote-tracking branch 'origin/master' into codex/goal-commands 2026-07-21 00:40:44 +08:00
Tianyi Cui
cf1aedf34e Merge pull request #412 from deepseek-harness/codex/commands
feat(ui): add plugin-owned human commands
2026-07-21 00:40:26 +08:00
Tianyi Cui
457b48efda Merge remote-tracking branch 'origin/master' into codex/commands 2026-07-21 00:36:16 +08:00
Tianyi Cui
2109ad8cef Merge pull request #405 from deepseek-harness/codex/goal-session
feat(goal): drive same-session goal rounds
2026-07-21 00:36:00 +08:00
Tianyi Cui
ed2ac29481 Merge remote-tracking branch 'origin/master' into codex/goal-session 2026-07-21 00:30:42 +08:00
Tianyi Cui
8a4c7f78d7 Merge pull request #403 from deepseek-harness/codex/goal-tools
feat(goal): add model-facing goal tools
2026-07-21 00:30:26 +08:00
Tianyi Cui
9848fdf93e refactor: remove unrelated helper extractions 2026-07-21 00:25:51 +08:00
Tianyi Cui
342af3050b Merge remote-tracking branch 'origin/master' into codex/goal-tools 2026-07-21 00:25:49 +08:00
Tianyi Cui
0c08e34a4a fix(invariants): harden runtime contracts and gates 2026-07-21 00:25:38 +08:00
Tianyi Cui
c503dd91a5 Merge pull request #402 from deepseek-harness/codex/goal-domain
feat(goal): add persisted same-session goal domain
2026-07-21 00:25:32 +08:00
Tianyi Cui
73f1280532 Merge remote-tracking branch 'origin/master' into codex/goal-domain 2026-07-21 00:20:30 +08:00
Tianyi Cui
d0bb8a86af Merge pull request #349 from deepseek-harness/rfc/loop
docs(agent-note): propose harness-level goal execution
2026-07-21 00:20:03 +08:00
Tianyi Cui
17abccadf7 Merge branch 'codex/ralph-tool' into codex/goal-rfc-rollup 2026-07-20 23:39:59 +08:00
Tianyi Cui
5eb592aa89 Merge branch 'codex/goal-commands' into codex/ralph-tool 2026-07-20 23:39:48 +08:00
Tianyi Cui
9140f91561 Merge branch 'codex/commands' into codex/goal-commands 2026-07-20 23:39:41 +08:00
Tianyi Cui
9f59f198d8 Merge branch 'codex/goal-session' into codex/commands 2026-07-20 23:39:36 +08:00
Tianyi Cui
2aae64b5da fix(goal-session): preserve typed error variants 2026-07-20 23:35:49 +08:00
Tianyi Cui
a4be4b5e52 docs(invariants): codify semantic review rules 2026-07-20 23:29:22 +08:00
Tianyi Cui
b850e69068 Condense snapshot testing policy 2026-07-20 23:24:43 +08:00
Tianyi Cui
578df3f986 Clarify goal rounds around request recovery 2026-07-20 23:20:44 +08:00