deepseek-harness/packages/core/agent-loop/tests
Turtle f593ef5ab5 fix(session): drop the <context> envelope and project context verbatim
context/message previously defaulted to a <context source="…">…</context>
wrapper. No model is trained on a <context> tag either, and message
framing does not belong on the session surface: the surface projects the
durable log, and a caller that wants a frame formats its own content —
which the one heavy producer (workspace-context) already does with its own
<system-reminder> frame, opting out via 'raw'. The tag only added
machinery — ContextEnvelope plus an envelope field threaded through
InjectOptions, HookContext, the context/message event, and the agent-loop
inject/additionalContexts plumbing.

context/message now projects its content verbatim as a user-role message,
sharing one deriveEventMessage case with user/message and steering/message.
ContextEnvelope and every envelope field are removed; context/message.meta
still carries durable, model-hidden JSON state. Regenerated catalogs and
website API; refreshed the three affected keyless snapshots (envelope field
only; timestamps unchanged).

Broadens and renames the steering Agent Note to cover both envelope
removals as one decision.

Agent Note: .agents/notes/implemented/simplification/2026-07-20-unwrap-injected-content-envelopes.md
2026-07-20 16:22:20 +08:00
..
agent-initiator.spec.ts docs(core): clarify initiator restoration timing 2026-07-19 14:16:07 +08:00
agent.spec.ts refactor(core): fold initiator scope into agents 2026-07-19 13:30:45 +08:00
cancel.spec.ts chore(core): align merged initiator changes 2026-07-19 13:37:11 +08:00
config-session-id.spec.ts refactor(core): fold initiator scope into agents 2026-07-19 13:30:45 +08:00
contract-regressions.spec.ts refactor(core): fold initiator scope into agents 2026-07-19 13:30:45 +08:00
coverage-edges.spec.ts Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
inbox.spec.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
interception.spec.ts fix(session): drop the <context> envelope and project context verbatim 2026-07-20 16:22:20 +08:00
loop.spec.ts fix(session): drop the <context> envelope and project context verbatim 2026-07-20 16:22:20 +08:00
mock-adapter.ts Reorganize packages into a modular hierarchy 2026-06-20 22:55:20 +08:00
properties.spec.ts Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
request-cache.e2e.ts Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
request-log.spec.ts Merge master into codex/simp-session-log-representation 2026-07-17 22:33:42 +08:00
request-reconstruction.spec.ts chore(core): align merged initiator changes 2026-07-19 13:37:11 +08:00
request-recovery.spec.ts fix(llm): scope adapter failures to model calls 2026-07-19 16:14:58 +08:00
resume.spec.ts Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
scope-lifecycle.spec.ts refactor(core): fold initiator scope into agents 2026-07-19 13:30:45 +08:00
tool-calls.spec.ts test: rename golden snapshot files to expected 2026-07-19 17:45:49 +08:00
tool-order.spec.ts chore(core): align merged initiator changes 2026-07-19 13:37:11 +08:00
turn-stop.spec.ts chore(core): align merged initiator changes 2026-07-19 13:37:11 +08:00