ReMe/reme/config/decision_compaction.yaml
jinliyl 548b08561e
refactor: generalize decision models and add recoverable context compaction (#626)
* refactor: generalize decision models and add opt-in context compaction

* chore: remove compaction-specific license metadata

* test: add live decision compaction scenarios and strategy guides

* docs: describe current decision model configuration directly

* refactor: preserve recoverable tool evidence and add compaction benchmarks

* docs: visualize compaction benchmark results with English charts

* docs: fix compaction benchmark links with verified permalinks

* benchmark: evaluate fixed-summary evidence additions and summary-aware selection

* docs: report summary-aware incremental evidence results

* docs: unify compaction strategy comparison

* refactor: replace compaction studies with one matched-input benchmark

* docs: pin matched-input results links

* bench: evaluate gold-labelled HotpotQA trajectories collected with Hermes

* docs: pin gold-labelled benchmark results

* bench: focus on frozen-summary Jev Top-N payment evaluation

* docs: pin frozen-summary benchmark results

* bench: evaluate fixed-summary fusion across Hermes fixture tasks

* docs: pin compaction study references to reviewed results

* bench: compare Jev fusion across frozen summary strategies

* docs: pin dual-summary benchmark and figure references

* docs: specify reproducible compaction settings and Hermes summary scope

* docs: plot Jev token overhead by retained Top N

* docs: pin reproducibility settings and revised cost figure

* docs: price total compaction and answering cost across Top N

* docs: pin final cost accounting and reproduction references

* docs: explain compaction experiment background setup and conclusions inline

* docs: compare compaction-only costs and omit Full from cost panel

* docs: pin compaction-only cost references

* docs: retain only quality and context-length experiment comparisons

* docs: pin streamlined experiment references

* docs: add Chinese counterparts for all compaction benchmark guides

* docs: link benchmark guides in the matching language

* docs: consolidate bilingual compaction benchmark guides

* docs: point compaction references to consolidated benchmark

* docs: reference Hermes Jev compaction evaluation results

* fix(benchmark): validate cached native summary provenance
2026-10-19 17:56:30 +08:00

31 lines
1.1 KiB
YAML

extends: default
jobs:
compact_context:
backend: base
description: "Propose recoverable tool-result previews; the caller owns source history and recovery."
parameters:
type: object
properties:
messages: {type: array, items: {type: object}}
goal: {type: string}
next_action: {type: string}
source_refs: {type: object, additionalProperties: {type: string}}
protected_message_ids: {type: array, items: {type: string}}
protected_call_ids: {type: array, items: {type: string}}
eligible_tool_names: {type: array, items: {type: string}}
options: {type: object}
required: [messages]
steps:
- backend: compact_context_step
as_decision_model: compaction
components:
as_decision_model:
compaction:
backend: ${DECISION_MODEL_BACKEND:-agentscope}
model: ${DECISION_MODEL_NAME:-null}
credential:
api_key: ${DECISION_MODEL_API_KEY:-}
base_url: ${DECISION_MODEL_BASE_URL:-null}
timeout: 10
max_retries: 1
retry_delay: 0.5