Task · SKT-0228

Derive only the deterministic correlation SpanID when the app discards the other fields

Description

App mintRequest creates fresh correlation fields, then calls ledger.NewCorrelationFromSeed solely to overwrite SpanID. The pure full deterministic call derives eight fields and discards seven. This predates the causal stack; it is not a newly introduced regression or proven cause of the app package timeout. Remove that demonstrated redundant derivation without changing the exact existing SpanID seed/domain, any fresh correlation field or shape RNG consumption. Existing SpanIDFromSeed uses different framing and must not be substituted blindly. Capture an unchanged baseline before optimizing.

Acceptance Criteria

Definition of Done

Implementation Notes

Root freezes a narrow ledger-owned CorrelationSpanIDFromSeed(seed string) string seam with exactly the old full-correlation SpanID framing seed plus NUL span, length eight bytes. Keep NewCorrelationFromSeed unchanged as an independent reference, keep all fresh join keys and shape draws unchanged, and change only the app call that currently discards seven deterministic fields. Capture before/after cost and real minter compatibility; no package-budget completion inferred.

Delivered at published main 11a16beb, exact tree 41d12d27. Full composed check run 20261026T024218Z-synthkit-089e411c passed, including app plain 36.533s and race 371.008s. Exact selected CLI resolved 1925/1925 names, unchanged metric-name/label inventory and all 49 sourced database names and keys. Five-file native and CodeRabbit review passed without findings; local privacy scan clean. No config/type/skill field changed, so generation condition is not applicable; actual gen-check passed. Baseline and semantic wrong-domain controls plus preserved full seeded/fresh constructors prove identity compatibility; narrow benchmark allocation savings do not establish the separate causal package budget or numerical live admission. New-head hosted CI is watched separately.

View the source file on GitHub