Commit graph

1 commit

Author SHA1 Message Date
Ouroboros
782b5fe352 v7next F2.1: domain D07 quiet part - delegation family split from tip bytes; terminal leaf, worktree-registry delta and sdn retirement hot-deferred
Module side. Seven owner leaves cut from tip bytes, every span transplant-tool
proof-green against git show HEAD:<monolith> (ast=tokens=byte-roundtrip on
every symbol, leaf_invariants=[], exit 0): delegate_custody_reconcile on the
_custody() handle (rows 3458-3466; row 3467 superseded by upstream re-home
81194970), tools/delegate_payload_patch on _di() (3477-3483),
tools/subagent_integration_delegated on _si() (3484-3494),
subagent_route_health projection-only (3939-3942), and the D07 half of the
SHARED tools/control.py - control_subagent_spec (2537-2542), control_scheduling
(2543-2556 + four unrowed post-cutoff neighbours riding with their readers:
_context_task_depth, _materialize_child_attachment_manifest,
maybe_emit_delegated_run_fanout, HIDDEN_LEGACY_SCHEDULE_PARAMS),
control_task_results (2569-2579). Six D02 rows cut in TIP form - the typed
tool_result delta returns with the F3 typed-result organ. Custody semantics:
upstream is the strict superset, only the split FORM was taken; declared sets
re-derived by the tool (custody set -5/+retire_settled_registrations;
control_scheduling declares exactly load_settings). Drift-probe first per
leaf: 40 rowed spans byte-true, 21 re-emitted from tip bytes; no oracle
semantics replayed over drift.

Facades = tip parent - moved spans + EOF re-export block + noqa discipline;
facade audit green (kept spans byte-identical, every moved name re-exported).
The hard-cap giants shrink: delegate_custody.py 1600->1305, control.py
2110->492 (control.py leaves GIANT_PATHS), subagent_integration.py 1599->1027,
delegate_integration.py 1540->868, subagents.py 1593->1370. The D23
handler-attribute setattr is stamped below the control re-exports; the three
control leaves join HOT_CODE_PATHS beside the D08 trio.

Test side. The transport giant (6187 lines, BYTE_DEBT) re-cut as the S7a theme
split from tip bytes: 140 rowed tests to 10 sibling suites (reconciliation
appended to the D11-created file) + tests/_delegated_transport_shared.py (15
rowed defs + _plain_ctx and _transport_snapshot, documented placements) + a
547-line remainder holding the 21 unrowed post-cutoff tests; lossless proven
(163 unique test names before == after, zero duplicate names, every moved span
byte-identical); the giant leaves GIANT_PATHS and BYTE_DEBT. Dead-patch class
re-pointed per the oracle adaptations (task_status_flow, subagents_phase3,
external_workspace_access, cache_optimization, delegation_account_pin).
LEAVES rows added for the four handle leaves; test_control_extraction extended
to the completed split; test_delegate_owner_facades pins facade identity minus
the deferred terminal group.

HOT-DEFERRED with evidence in docs/v7next/LEDGER_CORRECTIONS.md: the
tools/delegate.py terminal leaf (delegate_terminal name-collision fork,
rows 3468-3476, file stays exactly at the 1600 cap), the subagent_worktrees
strict-registry delta (rows 1083-1092 + pin), sdn retirement (rows 3937-3938
verified satisfied as identity), and the D02 deltas. Found, not fixed: 10
AST-identical duplicate tests between test_review_cycles_dispatch and
test_review_cycles_skill_dispatch (D06 material).

(cherry picked from commit 2da9f72671565166fb1546489d3e297290a59550)
2026-08-31 06:57:05 +00:00