acoustic-carpenter-78188
07/31/2026, 9:38 PMCacheMetadata (added in #7720) is shared vocabulary, not workflow-only: it is embedded in `ActionEvent`/`ActionAttempt` today, and the eventual plan is a first-class CachedOutput.cache_metadata field in cacheservice.proto once cache provenance stops being carried as an opaque serialized value.
If the message stays in workflow/run_definition.proto, that future import forces cacheservice.proto -> run_definition.proto, dragging the entire workflow API closure (task, core, ...) into every cacheservice client in every generated language, and pointing a dependency arrow from a near-leaf service package at the top-of-stack aggregator — standing cycle exposure.
flyteidl2/common is a pure dependency sink (it imports no domain packages; fourteen packages import it), so a message there can never participate in an import cycle, and cacheservice -> common already exists transitively.
What
• New common/cache.proto holding CacheMetadata (imports common/identifier.proto for ActionAttemptIdentifier). It gets its own file rather than joining identifier.proto, keeping that file a pure identifier catalog per the package's file-per-topic convention.
• `workflow/run_definition.proto`: message removed; ActionAttempt.cache_metadata (14) and ActionEvent.cache_metadata (16) retyped to common.CacheMetadata. Field numbers unchanged.
• Full codegen for Go/Python/Rust/TS.
Compatibility
Wire format is unchanged: same field numbers, and proto wire encoding does not capture message names, so existing serialized values (including provenance blobs already written by leaseworker builds) decode identically. Only the fully-qualified type name and generated-code import paths move; the sole downstream consumer is the unmerged unionai/cloud#17265, which will be updated alongside the submodule bump.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FMmFFGke8RkazoAA5BQa2H
flyteorg/flyteacoustic-carpenter-78188
07/31/2026, 10:10 PM