deepseek-harness/packages/core/scope/src
Yichen Jiang 1eb9acaba9 refactor(scope): bind the parent link once and gate re-linking behind the binding
setScopeParent could re-link any key from anywhere, leaving the
blank-session-only recompose rule entirely to caller discipline. The
relation now binds once — a second bind throws — and re-linking exists
only on the ScopeParentBinding returned to the original binder, the
private-capability shape the package conventions prescribe for a
single-caller operation. The preset roster keeps each composed agent's
binding in a WeakMap keyed by the agent, making it the sole authority
that can move an agent between standing compositions; the blank-session
contract itself stays with the gateway, which alone can see what a
session logged.
2026-08-10 11:17:04 +08:00
..
index.ts refactor(scope): bind the parent link once and gate re-linking behind the binding 2026-08-10 11:17:04 +08:00
invariant.ts feat(invariants): add package-owned service seam 2026-07-19 19:19:57 +08:00
scoped-events.generated.ts refactor(agent): unify agent-scoped event signatures as payload objects 2026-08-06 12:13:14 +08:00
store.ts docs(scope,agent-presets): standing-mount model, parent chain, and the Agent Note 2026-08-08 18:08:20 +08:00