mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
* fix(llm): wire prompt caching through all Anthropic call sites
- page-triage classifier + light-extraction now put the static skill
prompt in `system:` so the per-document caches hit instead of
re-sending boilerplate in the user message every call.
- Description generation builders return `{ system, user }` with
instruction text + word limit moved into the cacheable system.
- Relationship-LLM proposal framing moved to `system:`.
- `KtxMessageBuilder.wrapSimple` skips the history breakpoint for
single-message calls (cache write that could never be reused).
- Gateway backend now sets `anthropic-beta: extended-cache-ttl-2025-04-11`
so 1h TTLs don't silently downgrade to 5m on Gateway routes.
* fix(llm): keep wrapSimple history breakpoint so multi-step agent loops cache
Reverts the wrapSimple `messages.length > 1` guard from the prior commit.
agent-runner uses wrapSimple with a single user message, but generateText
runs a multi-step tool loop inside it — the cache marker on the first user
message is reused by every subsequent step, so it isn't waste.
The release validator (scripts/validate-llm-debug-jsonl.mjs) also requires
a `message-part` marker target in captured debug JSONL.
|
||
|---|---|---|
| .. | ||
| adapters | ||
| clustering | ||
| context-candidates | ||
| context-evidence | ||
| dbt-shared | ||
| memory-flow | ||
| page-triage | ||
| stages | ||
| tools | ||
| action-identity.test.ts | ||
| action-identity.ts | ||
| canonical-pins.test.ts | ||
| canonical-pins.ts | ||
| diff-set.service.test.ts | ||
| diff-set.service.ts | ||
| git-env.ts | ||
| index.ts | ||
| ingest-bundle.runner.test.ts | ||
| ingest-bundle.runner.ts | ||
| ingest-prompts.test.ts | ||
| ingest-runtime-assets.test.ts | ||
| local-adapters.test.ts | ||
| local-adapters.ts | ||
| local-bundle-ingest.test.ts | ||
| local-bundle-runtime.test.ts | ||
| local-bundle-runtime.ts | ||
| local-embedding-provider.integration.test.ts | ||
| local-ingest.ts | ||
| local-mapping-reconcile.test.ts | ||
| local-mapping-reconcile.ts | ||
| local-metabase-ingest.test.ts | ||
| local-stage-ingest.test.ts | ||
| local-stage-ingest.ts | ||
| metabase-mapping.ts | ||
| parsed-target-table.ts | ||
| ports.ts | ||
| raw-sources-paths.test.ts | ||
| raw-sources-paths.ts | ||
| repo-fetch.test.ts | ||
| repo-fetch.ts | ||
| report-snapshot.test.ts | ||
| report-snapshot.ts | ||
| reports.ts | ||
| source-adapter-registry.test.ts | ||
| source-adapter-registry.ts | ||
| sqlite-bundle-ingest-store.test.ts | ||
| sqlite-bundle-ingest-store.ts | ||
| sqlite-local-ingest-store.test.ts | ||
| sqlite-local-ingest-store.ts | ||
| types.ts | ||
| wiki-sl-ref-repair.test.ts | ||
| wiki-sl-ref-repair.ts | ||