Implement the approved Kiro SDD introduced by #565 and aligned to the lean-core target by merged spec-only PR #569.
Spec: .kiro/specs/downstream-cache-affinity-hinting/
The canonical spec is fully approved and ready_for_implementation: true, but it carries an explicit execution gate: production implementation begins only after core-feature-ownership-full-closure is implemented/certified and its final ownership census/core-admission ratchets are present on main.
Outcome
Deliver provider-facing downstream prompt-cache locality hinting without regrowing generic core:
- feature-owned HMAC derivation/fill-only synthesis/telemetry under the downstream-cache-affinity feature;
- standard construction through the post-closure standard
featurehost;
- reuse existing candidate-aware
PlaneAttemptTransforms, with no cache-specific executor stage/extension plane/core metrics callback;
- direct OpenAI Responses
prompt_cache_key forwarding/validation repair;
- non-lossy provider-profile lifecycle repair or reuse of the already-landed single owner;
- typed provider-profile projection and the frozen xAI/Mistral/Fireworks/RunInfra/OpenRouter behavior matrix;
- executable connector feature negotiation without a cache-specific protobuf value DTO/protocol bump;
- strict separation from secure-session authority, continuation, cache-residency control and keep-warm.
Dependencies
RED execution gate
Before changing production behavior, prove the post-closure request pipeline still has no later writer that creates/replaces PromptCacheKey after PlaneAttemptTransforms and that the key survives request hooks, candidate adaptation and final raw-session scrub. If that premise is false, stop and repair the SDD instead of adding a cache-specific late core stage.
Do not close this work order until all spec tasks and provider/connector/profile certification are complete on merged main.
Implement the approved Kiro SDD introduced by #565 and aligned to the lean-core target by merged spec-only PR #569.
Spec:
.kiro/specs/downstream-cache-affinity-hinting/The canonical spec is fully approved and
ready_for_implementation: true, but it carries an explicit execution gate: production implementation begins only aftercore-feature-ownership-full-closureis implemented/certified and its final ownership census/core-admission ratchets are present onmain.Outcome
Deliver provider-facing downstream prompt-cache locality hinting without regrowing generic core:
featurehost;PlaneAttemptTransforms, with no cache-specific executor stage/extension plane/core metrics callback;prompt_cache_keyforwarding/validation repair;Dependencies
RED execution gate
Before changing production behavior, prove the post-closure request pipeline still has no later writer that creates/replaces
PromptCacheKeyafterPlaneAttemptTransformsand that the key survives request hooks, candidate adaptation and final raw-session scrub. If that premise is false, stop and repair the SDD instead of adding a cache-specific late core stage.Do not close this work order until all spec tasks and provider/connector/profile certification are complete on merged
main.