Files
OpenViking/examples
czyyyyandczyyyy 66c1656813 feat(dsh): prevent delegated sessions from contaminating user memory (#4382)
DSH marks session-backed subagents with a durable origin field, while the OpenViking plugin previously enrolled every session in profile, recall, capture, and teardown commit. Add one opt-in boundary at the plugin hooks so operators can exclude those child sessions without changing existing installations.

Constraint: DSH classifies supported child sessions through SessionHeader.origin=subagent

Rejected: Independent capture and recall filters | teardown commit semantics would require per-state policy and a broader runtime refactor

Confidence: high

Scope-risk: narrow

Reversibility: clean

Directive: Do not classify from parentSession because human-driven forks may also carry lineage

Tested: Node 22.19 and Node 24 plugin checks; 341-pass memory-plugin matrix; npm pack dry-run

Not-tested: Real DSH CLI to OpenViking server E2E; unclassified timer or cron sessions

Co-authored-by: czyyyy <255856754+kwistzzqq-byte@users.noreply.github.com>
2026-08-28 12:41:20 +08:00
..