Scoped retained Takt state

v1.rs owns the complete saved execution/node/task graph, exact requests, history, shared runtime accounting, metrics and tracing defaults. It imports fixed container/principal contracts rather than live engine or public DTO definitions. There is one typed module per engine and one shared Runtime module.

Workflow<D,E>::create(scope) and RuntimeMemory::create(scope) produce detached owners for root attachment. Engine and Runtime bind module references once; view(access) borrows the existing actor frame. Mutation requires the actual write Scope. Node tables are compact sorted vectors with monotonic IDs; removing a node preserves order and frees an empty buffer. They are not lifetime-ID-indexed arrays and introduce no per-node Store resource.

Saved maps, sets, queues, vectors and immutable shared payloads use the retained allocator. Exact request/child bytes use single-allocation SharedSlice owners. Tagged saved options/enums have checked explicit representations. The private Cell wraps RefCell with a Store loan; guards release the RefCell borrow before that loan. Forgotten guards fail frame finalization, and queries cannot write.

Application-owned PayloadContract implementations bind data/error declarations and interpretation dependencies. Physical catalogs separately certify actual private container layouts. Module IDs alone cannot discover a child's data type, so the compiled root catalog traverses the closed owning module types rather than inferring contracts from live IDs. Owners still declare their interpretation sources and dependencies explicitly. Equal layout does not authorize a changed key comparator, Drop interpretation or data meaning.

Definitions, mappers, custom size functions and runtime hooks run outside broad saved-row mutable guards. Direct completion commits acquire fallible loans before row edits and stage displaced application values until all guards end, including failure paths. Other interpreter paths keep detached callback snapshots where selector visibility or reentry requires them. No borrowed view crosses await. Owned native/handler cleanup opens a fresh Store frame after a real callback trap.

Requests preserve original bytes and addresses through retries and uncertainty. Logical completion does not release a physical callback permit. KEEP defaults to full business/transport/callback drain and explicit transient service teardown. The upgrade guide separates source-pinned local-work KEEP and explicit cold owner conversion from that default. Neither permits unresolved task/effect conversion. Native tests, complete application IC tests, real callback trap gates and nested version conversions establish different parts of that contract. Historical experiment receipts remain under research; a fresh binary is qualified separately.

The crate-local state_contract tests check the complete physical state graph, retained sharing, exact saved-request metadata, optional projections, borrow exclusion and forgotten-guard accounting. Run them through the ordinary Takt library test command; no separate copy of the module wiring is required.