Commit Graph

3479 Commits

Author SHA1 Message Date
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
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
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
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
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
342af3050b Merge remote-tracking branch 'origin/master' into codex/goal-tools 2026-07-21 00:25:49 +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
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
Tianyi Cui
9f28f70d3e Merge branch 'codex/ralph-tool' into codex/goal-rfc-rollup 2026-07-20 23:19:56 +08:00
Tianyi Cui
cbae54c184 Merge branch 'codex/goal-commands' into codex/ralph-tool
# Conflicts:
#	docs/module-graph.md
2026-07-20 23:15:34 +08:00
Tianyi Cui
a9a9d40cb1 Merge branch 'codex/commands' into codex/goal-commands
# Conflicts:
#	docs/config-catalog.md
#	docs/module-graph.md
#	examples/acp-agent/tests/snapshots/error-finish/stdout.expected.jsonl
#	packages/examples/acp-demo/README.md
#	packages/examples/acp-demo/src/index.ts
#	packages/examples/agent-spine-demo/README.md
#	packages/examples/agent-spine-demo/package.json
#	packages/examples/agent-spine-demo/src/index.ts
2026-07-20 23:10:33 +08:00
Tianyi Cui
22fa51845e Merge branch 'codex/goal-session' into codex/commands
# Conflicts:
#	docs/config-catalog.md
#	docs/module-graph.md
#	examples/acp-agent/tests/snapshots/error-finish/stdout.expected.jsonl
#	packages/ui/acp/README.md
#	packages/ui/tui/README.md
2026-07-20 23:03:55 +08:00
Tianyi Cui
de72f972b7 Exercise normalized goal-round rate limits 2026-07-20 22:58:01 +08:00
Tianyi Cui
f98f0e9838 Merge branch 'codex/goal-tools' into codex/goal-session
# Conflicts:
#	docs/cordis-catalog/events.md
#	docs/event-producer-consumer.md
#	packages/core/agent-loop/README.md
#	packages/core/agent/README.md
2026-07-20 22:57:14 +08:00
Tianyi Cui
ea530241d8 Merge branch 'codex/goal-domain' into codex/goal-tools
# Conflicts:
#	docs/cordis-catalog/events.md
#	docs/event-producer-consumer.md
2026-07-20 22:50:36 +08:00
Tianyi Cui
076e46ebc0 Merge branch 'rfc/loop' into codex/goal-domain
# Conflicts:
#	docs/event-producer-consumer.md
#	docs/module-graph.md
2026-07-20 22:46:26 +08:00
Tianyi Cui
9ae98ebccc Merge latest master into RFC stack 2026-07-20 22:42:03 +08:00
Tianyi Cui
7094608c50 Update goal RFC rollup for current app surfaces 2026-07-20 22:30:52 +08:00
Tianyi Cui
ad386a5c75 Merge branch 'codex/ralph-tool' into codex/goal-rfc-rollup 2026-07-20 22:28:50 +08:00
Tianyi Cui
171a0e2b30 Merge pull request #80 from deepseek-harness/codex/llm-error-recovery-rfc
feat: add bounded LLM request recovery
2026-07-20 22:27:58 +08:00
Tianyi Cui
1b04e8eb2b Merge branch 'codex/goal-commands' into codex/ralph-tool
# Conflicts:
#	examples/repl-agent/README.md
#	examples/repl-agent/composition.md
#	examples/repl-agent/cordis.yml
2026-07-20 22:25:16 +08:00
Tianyi Cui
5c301febbf Merge branch 'codex/commands' into codex/goal-commands
# Conflicts:
#	docs/architecture.md
#	docs/config-catalog.md
#	docs/cookbook/extension-cookbook.i18n.yaml
#	docs/module-graph.md
#	packages/examples/README.md
#	packages/examples/agent-spine-demo/README.md
#	packages/examples/stdio-demo/README.md
#	packages/examples/stdio-demo/src/index.ts
#	packages/examples/stdio-demo/tests/stdio-agent.spec.ts
2026-07-20 22:18:20 +08:00
Tianyi Cui
cc2e14f76e fix: close recovery review gaps 2026-07-20 22:11:26 +08:00
Tianyi Cui
78472196c8 Merge branch 'codex/goal-session' into codex/commands
# Conflicts:
#	docs/architecture.md
#	docs/capability-seams.md
#	docs/config-catalog.md
#	docs/module-graph.md
#	knip.json
#	packages/examples/README.md
#	packages/examples/stdio-demo/README.md
#	packages/examples/stdio-demo/src/index.ts
#	packages/examples/tui-demo/package.json
#	packages/ui/README.md
#	packages/ui/tui/src/index.ts
2026-07-20 22:05:51 +08:00
Tianyi Cui
40f7195266 Merge latest master into codex/llm-error-recovery-rfc 2026-07-20 21:59:47 +08:00
Tianyi Cui
41196b7e4f Merge branch 'codex/goal-tools' into codex/goal-session
# Conflicts:
#	docs/event-producer-consumer.md
2026-07-20 21:55:13 +08:00
Tianyi Cui
23eb41c98b Merge pull request #442 from deepseek-harness/codex/tui-windows-contract
Support and verify the TUI on Windows
2026-07-20 21:49:41 +08:00
Tianyi Cui
9d0a75b154 Merge branch 'codex/goal-domain' into codex/goal-tools
# Conflicts:
#	docs/event-producer-consumer.md
2026-07-20 21:44:06 +08:00
Tianyi Cui
11afddf61d Merge branch 'rfc/loop' into codex/goal-domain
# Conflicts:
#	docs/event-producer-consumer.md
#	knip.json
2026-07-20 21:37:04 +08:00
Tianyi Cui
f6dfc5d3c3 docs: retire stale stdio package links 2026-07-20 21:23:37 +08:00
Tianyi Cui
ebd7d4d018 Merge origin/master into rfc/loop 2026-07-20 21:17:40 +08:00
Tianyi Cui
02a61d3a25 Clarify the platform-specific PTY path 2026-07-20 21:16:40 +08:00
Tianyi Cui
85c658b028 fix: drop retry dependency from pruner 2026-07-20 21:11:38 +08:00
Tianyi Cui
e9aef281a1 Document the Windows TUI contract 2026-07-20 21:11:38 +08:00
Tianyi Cui
a4b4fe13c0 Merge branch 'codex/ralph-tool' into codex/goal-rfc-rollup 2026-07-20 21:10:06 +08:00