deepseek-harness/docs
Tianyi Cui 5717726835 subprocess: one explicit env channel on the spawn spec
Drop SubprocessSpawnSpec.dshEnv and splitEnvChannels(); childEnv() is now
scrubbed-base + explicit entries with no namespace validation. The invariant
dropped is the reserved-namespace check on explicit entries (DSH_* rejected
from env, non-DSH_* rejected from dshEnv). Explicit-entry trust already
covers it: an explicit credential-shaped entry has always merged after the
scrub as a deliberate caller opt-in, and an explicit DSH_* entry is the same
deliberate act — the staleness invariant lives entirely in scrubbedParentEnv
dropping AMBIENT credential-shaped and DSH_* names, which stays. The
validation's only observed effect was rejecting legitimate explicit entries:
both recent CI breakages (DSH_GATE_CONCURRENCY exported into every job
crashing lsp specs, DSH_PERMISSION_MODE in acp config.env crashing the
child spawn) were this check firing on values a caller meant to pass, each
fixed by routing around the bureaucracy the seam itself imposed.

The bash seam keeps its own request/spec dshEnv field: that is bash-owned
trusted-plugin vocabulary (the ctx.bashEnv collected overlay) whose merge-last
position guarantees a caller env entry cannot displace a managed fact;
bash-local now flattens ENV_OVERRIDES -> spec.env -> spec.dshEnv into the
seam's one env map. subagent-acp and lsp-local pass their single config env
map straight through. DshEnvironment/DshEnvironmentKey/DSH_ENV_PREFIX stay on
the subprocess seam as the namespace vocabulary (bash re-exports them;
scrubbedParentEnv filters on the prefix).

Tests: the two channel-rejection specs and the splitEnvChannels partition
spec are deleted; one spawn spec now proves an explicit DSH_* env entry
reaches the child while an ambient one is scrubbed; the acp/lsp forwarding
specs keep their MOCK_ECHO_ENV / LSP_FAKE_ECHO_ENV assertions with the split
comments rewritten to merge-after-scrub. Docs (en+zh, re-recorded) and the
owning Agent Notes updated; cordis api/services catalogs regenerated.
2026-07-27 04:14:51 +08:00
..
cookbook docs: translate remaining non-README documentation 2026-07-26 02:33:29 +08:00
cordis-catalog subprocess: one explicit env channel on the spawn spec 2026-07-27 04:14:51 +08:00
cordis-tutorial docs: translate remaining non-README documentation 2026-07-26 02:33:29 +08:00
core-data-structures subprocess: one explicit env channel on the spawn spec 2026-07-27 04:14:51 +08:00
i18n docs: make bilingual pairing universal 2026-07-26 15:06:51 +08:00
postmortem docs(i18n): mirror ACP-automation edits into the zh pairs from master 2026-07-25 01:58:42 +08:00
user refactor(acp): reduce bridge to automation protocol 2026-07-24 01:40:25 +08:00
agent-lifecycle.md refactor(agent): align delivery method names 2026-07-24 15:08:36 +08:00
AGENTS.md docs: restore generated Cordis core API 2026-07-20 16:33:44 +08:00
architecture.i18n.yaml fix(subprocess): tree-scoped escalation and byte-exact tails (Codex round 1) 2026-07-26 16:50:36 +08:00
architecture.md fix(subprocess): tree-scoped escalation and byte-exact tails (Codex round 1) 2026-07-26 16:50:36 +08:00
architecture.zh.md fix(subprocess): tree-scoped escalation and byte-exact tails (Codex round 1) 2026-07-26 16:50:36 +08:00
capability-seams.md feat(subprocess): migrate lsp-local, subagent-acp, and the env scrubs onto the seam 2026-07-26 15:27:59 +08:00
config-catalog.md Merge branch 'master' into worktree-process-service-seam 2026-07-27 01:47:49 +08:00
cordis-primer.i18n.yaml docs(i18n): clarify Cordis and test wording 2026-07-24 14:21:15 +08:00
cordis-primer.md Merge remote-tracking branch 'origin/master' into worktree/pr343-retarget-latest-master 2026-07-23 13:40:29 +08:00
cordis-primer.zh.md docs(i18n): clarify Cordis and test wording 2026-07-24 14:21:15 +08:00
defensive-patterns.i18n.yaml Merge remote-tracking branch 'origin/master' into worktree/pr343-retarget-latest-master 2026-07-24 21:20:17 +08:00
defensive-patterns.md Merge remote-tracking branch 'origin/master' into worktree/pr343-retarget-latest-master 2026-07-24 21:20:17 +08:00
defensive-patterns.zh.md Merge remote-tracking branch 'origin/master' into worktree/pr343-retarget-latest-master 2026-07-24 21:20:17 +08:00
development.i18n.yaml docs: deduplicate paired code-block checks 2026-07-26 02:52:48 +08:00
development.md docs: deduplicate paired code-block checks 2026-07-26 02:52:48 +08:00
development.zh.md docs: deduplicate paired code-block checks 2026-07-26 02:52:48 +08:00
event-producer-consumer.md Merge branch 'code-mode-ui/live-parallel' into code-mode-ui/dispatch-spill 2026-07-26 21:35:03 +08:00
glossary.i18n.yaml docs: align Goal Round step cardinality 2026-07-24 12:10:40 +08:00
glossary.md docs: align Goal Round step cardinality 2026-07-24 12:10:40 +08:00
glossary.zh.md docs(i18n): allow zero-step Goal Rounds 2026-07-23 21:13:34 +08:00
graph-atlas.md refactor(acp): reduce bridge to automation protocol 2026-07-24 01:40:25 +08:00
module-graph.md Merge branch 'worktree-process-service-seam' into worktree-subprocess-consumers 2026-07-26 22:04:14 +08:00
persistence-catalog.md Merge branch 'master' into code-mode-ui/live-parallel 2026-07-26 21:04:03 +08:00
testing.i18n.yaml Merge remote-tracking branch 'origin/master' into web-e2e-lane 2026-07-25 14:20:19 +08:00
testing.md Merge remote-tracking branch 'origin/master' into web-e2e-lane 2026-07-25 14:20:19 +08:00
testing.zh.md Merge remote-tracking branch 'origin/master' into web-e2e-lane 2026-07-25 14:20:19 +08:00
tool-catalog.md fix: address review — staged scheduler, start-time reclassification, catalogs 2026-07-26 10:33:48 +08:00
tool-execution-pipeline.md Merge remote-tracking branch 'origin/master' into feat/send-unify 2026-07-23 22:41:45 +08:00
web-styling.i18n.yaml docs: translate remaining non-README documentation 2026-07-26 02:33:29 +08:00
web-styling.md docs: translate remaining non-README documentation 2026-07-26 02:33:29 +08:00
web-styling.zh.md docs: translate remaining non-README documentation 2026-07-26 02:33:29 +08:00