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.
This commit is contained in:
AlexKucera committed 2026-11-15 19:27:40 +01:00
1 parent a6cfb51626
commit 54ee2a57eb
4 files changed
+148

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
# 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.