deepseek-harness/docs/core-data-structures
Dudu-0223 8e8f90e235 fix(lsp): address codex review round 1
Lifecycle and safety fixes from the external review:
- Observe abort while awaiting the initialize handshake, so a server that never
  replies can't defeat the tool-timeout signal.
- On an aborted request the server won't cancel, tear the instance down after a
  bounded grace instead of releasing the serialized queue with work still live
  (prevents overlapping document lifecycles).
- Re-check provider disposal after the canonicalize/read awaits so a query can't
  spawn an unowned server after disposeAll().
- Read the source through one open handle (stat + read on the same fd) to close
  the realpath-vs-read TOCTOU; decode with a fatal UTF-8 decoder so a legitimate
  U+FFFD is not misclassified as invalid.
- Validate and read the source BEFORE spawning a server (pre-start rejection).
- Require an explicit openClose for option-form textDocumentSync.
- Reject nonpositive teardown budgets and non-executable absolute commands at
  load; surface unsupported operations as structured LSP_UNSUPPORTED_OPERATION.
- Retain the stderr tail (fatal diagnostics land at exit), not the prefix.
- Catalog the seam vocabulary in docs/core-data-structures/lsp.md.
2026-07-16 13:11:07 +08:00
..
approval.md docs(rfc): align scoped runtime contracts 2026-07-12 22:49:46 +08:00
bash.md Merge remote-tracking branch 'origin/master' into codex/simp-prune-bash-surface 2026-07-14 17:38:15 +08:00
code-runtime.md refactor: prune code runtime surface 2026-07-14 03:07:41 +08:00
compaction.md docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
core.md fix(lsp): address codex review round 1 2026-07-16 13:11:07 +08:00
filesystem.md docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
llm-streaming.md docs: make the service map the front door of architecture.md 2026-07-05 01:22:17 +08:00
lsp.md fix(lsp): address codex review round 1 2026-07-16 13:11:07 +08:00
persistence.md docs(rfc): align scoped runtime contracts 2026-07-12 22:49:46 +08:00
sandbox.md fix(review): reconcile sandbox and approval contracts 2026-07-11 21:37:38 +08:00
scope.md docs(rfc): align scoped runtime contracts 2026-07-12 22:49:46 +08:00
session-query.md refactor(session-query): narrow phase one to exact reads 2026-07-11 12:20:35 +08:00
session.md docs(rfc): align scoped runtime contracts 2026-07-12 22:49:46 +08:00
skills.md docs: tighten prose audit after master retarget 2026-07-13 16:24:32 +08:00
subagent.md docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
system-prompt.md refactor(core): remove owner-final assembly machinery 2026-07-13 13:09:41 +08:00
tools.md Merge remote-tracking branch 'origin/master' into codex/simp-prune-tools-prompt-surface 2026-07-14 17:30:34 +08:00
user-interaction.md refactor: colocate user interaction with ui packages 2026-07-09 17:59:02 +08:00
web.md Merge remote-tracking branch 'origin/master' into codex/simp-prune-web-seam-fields 2026-07-14 17:57:50 +08:00
workflow.md workflow: meta rides the seam as data — the engine never evaluates it 2026-07-09 20:09:10 +08:00