Skip to content

Add cache-aware request shape diagnostics - #23

Merged
likun666661 merged 1 commit into
apache:mainfrom
likun666661:deepseek-cache-aware-context-phase4
Jun 16, 2026
Merged

Add cache-aware request shape diagnostics#23
likun666661 merged 1 commit into
apache:mainfrom
likun666661:deepseek-cache-aware-context-phase4

Conversation

@likun666661

Copy link
Copy Markdown
Member

Summary

  • Split prefixHash / prefixChangeReason into durable-prefix diagnostics and add requestShapeHash / requestShapeChangeReason for full request/history shape.
  • Add cacheMissInputSource so telemetry can distinguish provider-explicit cache miss counts from locally derived counts.
  • Add opt-in stale tool-result prune-before-compact for RuntimeEvent replay context, using archive placeholders that preserve tool call/result pairing and point back to the canonical RuntimeEvent id.
  • Extend the DeepSeek live baseline report with durable-prefix, request-shape, and cache-miss source fields.

Refs #19.

Rive gate

  • Workflow: maka.deepseek-cache-aware-context-phase4@1
  • Run: wfrun_0f5c0ffb0f7f4118b32f8b039b93d932
  • Scheduler: sched_bcb15b2b764a48ecbe9f137ecdb0cdbf
  • Resume scheduler: sched_1e7e934da7094c4ab772a22cb2b5e5a3
  • Root: work_7a2ee18aff4649a4a9625828125f7533 accepted/done

Verification

  • npm run typecheck --workspace packages/core
  • npm run typecheck --workspace packages/runtime
  • npm run typecheck --workspace packages/storage
  • npm run test --workspace packages/runtime (465/465)
  • npm run test --workspace packages/storage (81/81)
  • npm run test --workspace packages/core (614/614)
  • npm run build --workspaces --if-present
  • git diff --check

@likun666661
likun666661 merged commit f23e5d9 into apache:mainJun 16, 2026
jackwener pushed a commit that referenced this pull request Jun 21, 2026
…phase4
Add cache-aware request shape diagnostics
jackwener pushed a commit that referenced this pull request Jun 21, 2026
…phase4
Add cache-aware request shape diagnostics
jackwener pushed a commit that referenced this pull request Jun 21, 2026
…phase4
Add cache-aware request shape diagnostics
jackwener pushed a commit that referenced this pull request Jun 21, 2026
…phase4
Add cache-aware request shape diagnostics
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@likun666661