deepseek-harness/scripts
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
..
snapshots/python-sdk-single-exe/advanced fix: complete code runtime surface pruning 2026-07-14 03:18:16 +08:00
build-exe-for-python-sdk.ts docs: align prose with runtime contracts 2026-07-14 16:21:41 +08:00
build-python-release.py python: derive release version from repository 2026-07-13 17:49:01 +08:00
check-vendor-manifest.sh Add lefthook git hooks with a vendor-manifest guard 2026-06-11 15:07:55 +08:00
check-workspace-constraints.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:40:36 +08:00
demo-code-mode.mjs Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 12:34:14 +08:00
doc-budgets.manifest.json fix(snapshot): register filesystem tools through explicit overlay 2026-07-14 21:25:58 +08:00
doc-typecheck.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
gen-config-catalog.ts Merge remote-tracking branch 'origin/master' into feat/mcp-client 2026-07-14 23:16:43 +08:00
gen-cordis-api.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
gen-cordis-catalog.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
gen-doc-graphs.ts fix: scan one-shot event listeners 2026-07-15 00:49:56 +08:00
gen-module-graph.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 12:34:14 +08:00
gen-persistence-catalog.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
gen-rfc-index.ts docs(rfc): define and enforce a uniform RFC format; adopt it across the corpus 2026-07-05 22:58:25 +08:00
gen-scoped-events.ts fix: lint 2026-07-14 23:44:48 +08:00
gen-tool-catalog.ts feat(lsp): LSP capability seam, generic stdio provider, and lsp tool 2026-07-16 12:05:35 +08:00
install-lefthook.mjs fix(dev): make hooks and bash seams safer 2026-06-17 21:26:44 +08:00
jsdoc.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
markdown.ts docs: harden package README gates 2026-07-14 14:01:35 +08:00
package-graph.ts chore: tighten TypeScript duplication lint 2026-07-14 00:24:04 +08:00
publint-all.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
repo-files.ts chore: tighten TypeScript duplication lint 2026-07-14 00:24:04 +08:00
rfc-index.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
run-gates.ts refactor: derive event graphs and scope invariants from TypeScript 2026-07-14 23:37:56 +08:00
smoke-python-runtime.py test(pkg): snapshot advanced Python SDK executable flow 2026-07-13 23:31:26 +08:00
translation-pairing.manifest.json docs(i18n): cookbook batch — six bilingual pairs via the committed pipeline 2026-07-14 07:23:53 -07:00
ts-project.ts fix: lint 2026-07-14 23:44:48 +08:00
type-equiv.manifest.json fix(lsp): address codex review round 1 2026-07-16 13:11:07 +08:00
verify-cordis-config.ts fix(snapshot): register filesystem tools through explicit overlay 2026-07-14 21:25:58 +08:00
verify-doc-budgets.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
verify-doc-refs.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
verify-export-jsdoc.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
verify-md-links.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
verify-md-wrap.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
verify-mermaid.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
verify-node-next-types.ts docs: update rewriteRelativeImportExtensions to current rfc 2026-06-22 09:03:28 +08:00
verify-package-paths.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
verify-package-readme-limitations.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 14:37:16 +08:00
verify-package-readme-model-experience.ts feat(lsp): LSP capability seam, generic stdio provider, and lsp tool 2026-07-16 12:05:35 +08:00
verify-rfc-classification.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
verify-rfc-format.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
verify-runtime-closure.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:40:36 +08:00
verify-translation-pairing.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 12:34:14 +08:00
verify-type-equiv.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00