conductor(campaign): metadata_ssdl_defusing_20260624 - 3-child SSDL defusing campaign

Campaign: address the parent code_path_audit_20260607 Finding 1 (CRITICAL)
Metadata 4.01e22 effective codepaths via 3 SSDL techniques.

3 children, sequential, with budget gates:
1. metadata_nil_sentinel_20260624 (>= 10% drop): introduce
   NIL_METADATA sentinel + migrate 6 nil-check functions.
2. metadata_generational_handle_20260624 (>= 20% drop,
   BLOCKED_BY 1): wrap Metadata in (index, generation) handle;
   collapse lifetime branches to 1 lookup + 1 cmp.
3. metadata_field_cache_20260624 (>= 30% drop, BLOCKED_BY 2):
   MetadataFieldCache keyed by (handle.index, field_name);
   123 string-keyed entry.get('key', default) sites become
   cache lookups.

Each child has its own spec/plan/metadata/state. Budget gate
after each child: re-measure effective codepaths; if drop < threshold,
PAUSE the campaign and report to user.

End-of-campaign TRACK_COMPLETION captures the cumulative reduction
vs the 4.01e22 baseline. Deferred follow-up: apply the same
3 SSDL primitives to the 4 other dict[str, Any] aliases
(FileItem, CommsLogEntry, HistoryMessage, ToolDefinition, ToolCall).

16 files committed: 4 directories x 4 files each (spec, plan,
metadata, state).
This commit is contained in:
ed
2026-06-24 14:53:40 -04:00
parent b4e32a71de
commit 84c0b4ecc4
16 changed files with 1375 additions and 0 deletions
@@ -0,0 +1,44 @@
# Track state for metadata_generational_handle_20260624
# Child 2 of metadata_ssdl_defusing_20260624 campaign.
# 3 phases, 3 tasks. BLOCKED_BY child 1.
[meta]
track_id = "metadata_generational_handle_20260624"
name = "Child 2: Metadata Generational Handle"
status = "active"
current_phase = 0
last_updated = "2026-06-24"
[parent]
parent_campaign = "metadata_ssdl_defusing_20260624"
[blocked_by]
code_path_audit_20260607 = "shipped"
metadata_nil_sentinel_20260624 = "shipped"
[blocks]
# Within the campaign:
metadata_field_cache_20260624 = "pending child 2"
[phases]
phase_1 = { status = "pending", checkpointsha = "", name = "Behavioral Test" }
phase_2 = { status = "pending", checkpointsha = "", name = "Implementation (Handle + Registry + migrations)" }
phase_3 = { status = "pending", checkpointsha = "", name = "Verification + Budget Gate" }
[tasks]
t1_1 = { status = "pending", commit_sha = "", description = "Write tests/test_metadata_generational_handle.py with 4 tests (red)" }
t2_1 = { status = "pending", commit_sha = "", description = "Add MetadataHandle + MetadataHandleRegistry + migrate lifetime-check sites" }
t3_1 = { status = "pending", commit_sha = "", description = "Run all 6 VCs; capture budget gate measurement; write TRACK_COMPLETION; update state + tracks.md" }
[verification]
vc1_handle_and_registry_exist = false
vc2_production_uses_registry = false
vc3_behavioral_test_passes = false
vc4_budget_gate_met = false
vc5_full_test_suite_green = false
vc6_audit_gates_clean = false
[budget_gate]
baseline = "post_child_1_measurement"
expected_drop_pct = 20
post_child_2_measurement = null