mirror of
https://github.com/volcengine/OpenViking.git
synced 2026-09-29 16:58:31 +08:00
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>