kcode-kennedy-subagent-context 0.1.1

Box-free virtual Ktool state for Kennedy subagents
Documentation
# Kennedy Subagent Context

`kcode-kennedy-subagent-context` owns the ephemeral, box-free current state of
one Kennedy subagent. It never opens or changes Session History.

`Context::new` creates an empty child Kweb context using the parent session's
root IDs and fixed-loading compatibility choice. No root, node, connection,
box, transcript, or prompt text is automatically projected. Loaded nodes use
the same combined fixed/recent summary policy as the parent.

The caller loads nodes into `kweb_mut`, then calls `reconcile_kweb` with the
shared session's current staged updates and creates. The returned
`StateChanges` contains `kcode_agent_runtime::StateUpdate` values keyed by
stable Kweb logical identities. Changed values replace prior child state;
removed values produce `None` updates. Reconciliation ignores parent-plan
updates for nodes that are not fully loaded in this child and staged creates
that the child has not made visible, so ambient parent plan state cannot enter
the child projection.

`include_staged_nodes` makes explicitly referenced pending-node IDs visible to
later reconciliation. The host calls it for pending nodes named by a child Kmap
mutation and for nodes created by that child; it does not load durable nodes or
grant Kmap authority.

`apply_source_snapshot` stores one current managed-source value per source kind
and project name. `source_is_open` and `source_state` let the host validate and
budget a later freeform or structured write without consulting parent boxes.

`StateChanges::display_text` and `displayed_state_keys` allow a tool result that
already contains complete current values to identify them to the agent runtime.
The runtime remains the sole owner of history replacement and its generic
supersession marker.

This library does not authorize or execute Ktools, mutate Kmap plans, stage
objects, deliver messages, perform provider work, record audit history, or own
the terminal subagent response.