fix: address PR #1802 review round

- listChildren reads the session store via strict ctx.get (property proxy
  is caller-scoped), orders candidates branchlessly, narrows the cold-read
  return type, and pins the cost model and store/registry composition gaps
  with tests; per-file coverage restored
- acp-agent and headless-agent compositions mount session-projection; a
  keyless snapshot pins the descriptor-less diagnostic row
- api-proxy cold spec pins header-origin ownership and the legacy
  descriptor-only opt-out
- design note ships as implemented with its English pairing; companion
  notes and core-data-structures pages synced
This commit is contained in:
imccyu
2026-08-06 20:41:53 +08:00
parent a328fd34d5
commit 0b0b9e4707
29 changed files with 637 additions and 105 deletions
@@ -0,0 +1,44 @@
# Keyless real-Loader composition for the descriptor-less cold-child
# diagnostic snapshot. The seeded parent owns one session-backed child whose
# log carries `origin: 'subagent'` but no descriptor event, so the projection
# fold produces no identity and `list_agents` must surface the child as a
# `[diagnostic: corrupt]` row instead of silently dropping it.
- id: persistence
name: '@deepseek-ai/dsh-session-persistence-jsonl'
config:
root: './.sessions'
compression: none
# file/override both default to their DSH_SNAPSHOT_* env vars.
- id: replay
name: '@deepseek-ai/dsh-llm-replay'
# This scenario probes the subagent catalog only, so the bash/filesystem
# stacks are absent; the bundle must opt out of the tools that would wait
# forever for executors this tree never mounts.
- id: agent
name: '@deepseek-ai/dsh-agent-spine-demo'
config:
agents: []
workspaceContext: false
skills:
enabled: false
toolBash: false
toolTasks: false
goals: false
# Projection registry: the cold child's identity fold runs through it; the
# catalog read fails loud when the capability is absent.
- id: session-projection
name: '@deepseek-ai/dsh-session-projection'
- id: subagent
name: '@deepseek-ai/dsh-subagent'
- id: tool-subagent-list-agents
name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
# Await the persisted resume before the headless driver inspects root agents.
- id: resumed-agent
name: './tests/fixtures/subagent-diagnostic-agent.ts'