Files
AlexKucera 54ee2a57eb docs: add session log, learnings, and glossary
Devlog for the 4-round reviewer-fanout audit with decisions and
gotchas; AGENTS.md gains GitNexus code-intelligence boilerplate
plus Project Learnings and Session Logs sections; GLOSSARY.md
defines warn/force tiers and the compaction cycle.
2026-11-15 19:27:40 +01:00

19 lines
882 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Glossary
Domain terms for the smart-compact extension.
## Terms
## Discovered Terms
<!-- distill-learnings: discovered-terms -->
### Warn tier
Tier 1: a one-shot `custom_message` injected at `turn_end` once per compaction cycle when context crosses `min(warnTokens, warnFraction × window)` — invisible in the UI (`display: false`), nudges the agent to be economical.
### Force tier
Tier 2: `ctx.compact()` triggered from `agent_settled` (idle-guaranteed boundary) when context crosses `min(forceTokens, forceFraction × window)` — never from `turn_end`, because manual compaction aborts the active run and never resumes it.
### Compaction cycle
The span between compactions. `session_compact` (any cause: manual `/compact`, forced, threshold, overflow recovery) resets the warn flag, the in-flight lock, and the cached token count; guards fire at most once per cycle.