deepseek-harness/docs
Tianyi Cui cfceb8452b subagent: seed inherited policy events at creation
The parent implementation introduced sandboxMode and approvalPolicy as generic SessionHeader fields, then propagated those fields through both persistence backends, session-query indexes, collision checks, policy-specific seed-boundary folds, catalogs, and a broad test matrix. That storage plane is unnecessary: Session already accepts a validated constructor seed, and persistence captures that seed when the session is announced before committing its first batch.

Capture each parent override synchronously at delegation, append source-tagged sandbox/mode and approval/policy records after the optional fork prefix, and create the child with that combined seed. Keeping header.seedLength at the original fork-prefix length preserves lineage while ordinary last-event-wins folds make the inherited records outrank stale parent history and remain subordinate to later child switches. Unswitched parents still stamp nothing, so children continue to follow deployment defaults.

Remove the generic header fields and every persistence/query/schema branch built around them. Collapse the inheritance suite from ten leaking scenarios to four owned-context cases covering real filesystem confinement, stale fork precedence, delegation-time capture, and the no-override path. The assembled headless snapshot now asserts the persisted inheritance event directly.

This keeps the security behavior while restoring policy ownership to the existing event log and deleting the speculative durability machinery that the original tests did not exercise.
2026-07-28 21:31:17 +08:00
..
cookbook refactor: identify and freeze messages at creation 2026-07-28 13:55:59 +08:00
cordis-catalog subagent: seed inherited policy events at creation 2026-07-28 21:31:17 +08:00
cordis-tutorial docs: translate remaining non-README documentation 2026-07-26 02:33:29 +08:00
core-data-structures subagent: seed inherited policy events at creation 2026-07-28 21:31:17 +08:00
i18n Merge remote-tracking branch 'origin/master' into worktree-i18n-update-workflow 2026-07-27 09:39:54 +08:00
postmortem docs(i18n): mirror ACP-automation edits into the zh pairs from master 2026-07-25 01:58:42 +08:00
user Merge remote-tracking branch 'origin/master' into xtr/agent-loop-message-machine 2026-07-27 16:48:38 +08:00
agent-lifecycle.md refactor(agent): return request retry action 2026-07-27 21:17:49 +08:00
AGENTS.md docs(notes): archive low-value decision records 2026-07-26 23:06:00 +08:00
architecture.i18n.yaml refactor(session): remove synthetic log-only turns 2026-07-28 14:41:51 +08:00
architecture.md refactor(session): remove synthetic log-only turns 2026-07-28 14:41:51 +08:00
architecture.zh.md refactor(session): remove synthetic log-only turns 2026-07-28 14:41:51 +08:00
capability-seams.md docs: regenerate catalogs and graphs for the projection seam; classify its types 2026-07-28 01:09:55 +08:00
config-catalog.md subagent: seed inherited policy events at creation 2026-07-28 21:31:17 +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 refactor(dev-infra): narrow worktree hook safety checks 2026-07-28 00:05:31 +08:00
development.md refactor(dev-infra): narrow worktree hook safety checks 2026-07-28 00:05:31 +08:00
development.zh.md refactor(dev-infra): narrow worktree hook safety checks 2026-07-28 00:05:31 +08:00
event-producer-consumer.md Merge remote-tracking branch 'origin/master' into xtr/identified-immutable-messages 2026-07-28 18:49:23 +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 docs(graphs): retain archived rationale link 2026-07-26 23:08:47 +08:00
module-graph.md Merge remote-tracking branch 'origin/master' into feature/subagent-policy-inheritance 2026-07-28 18:19:30 +08:00
persistence-catalog.md subagent: seed inherited policy events at creation 2026-07-28 21:31:17 +08:00
testing.i18n.yaml build(web): rebuild plugin bundles before the browser lane 2026-07-28 18:14:22 +08:00
testing.md build(web): rebuild plugin bundles before the browser lane 2026-07-28 18:14:22 +08:00
testing.zh.md build(web): rebuild plugin bundles before the browser lane 2026-07-28 18:14:22 +08:00
tool-catalog.md Restore Cordis mount and unmount names 2026-07-27 21:20:06 +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