Files
deepseek-harness/packages/self-modification
creatixchu 87f24bb991 fix(agent-loop): mark finalized prefixes durable-interrupted; never finalize failed attempts
Review round findings:

- Clear the streaming attempt before the request-error waterfall: a cancel
  landing during recovery (typically the llm/retry backoff, after clients
  reset the streamed rendering) must not resurrect the failed stream's
  prefix. Provider failures commit nothing, now including that window.
- Record interrupted: true on the cancellation-finalized assistant/message.
  The chat projection keeps the settled prefix classified as interrupted
  (Stopped chip, restored web goldens), and request inspection leaves the
  request uncompleted so the step boundary classifies it as before.
- Pin the recovery-window and retry-discard semantics with content-bearing
  failed streams in cancel.spec; update the ACP late-end expectation to the
  finalized-prefix transcript.
- Mention interruptedBlocks() in the assembler stream-lifecycle JSDoc.
2026-08-10 13:10:43 +08:00
..

self-modification/ — the agent modifies its own runtime

English | 中文

Model-facing tools over the live cordis runtime the agent itself runs inside: inspect the loaded plugins and service surface, mount model-written plugins, and dispose them again — plus the restricted repository Plugin runtime. Design home: the toolset Agent Note.

Package Role ctx key
tool-cordis/ Model-facing runtime inspection and temporary-plugin tools registers on ctx.tools
repository-plugin/ Repository skill and MCP composition registers a Loader builtin