@ngockhoale/ukit 3.4.32 → 3.4.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,18 +124,34 @@ bash:
124
124
  memory:
125
125
  backend: off
126
126
 
127
- # Auto-compact must trigger BEFORE context-hardcap-gate.sh starts blocking tool
128
- # calls (compact.hardCapTokens, default 500000). Rendered at install time from the
129
- # same derived number as env.CLAUDE_CODE_AUTO_COMPACT_WINDOW in
130
- # template_project/.claude/settings.json (70% of hardCapTokens), so omp and Claude Code
131
- # cannot drift apart and retuning both is a single edit to
132
- # template_project/ukit/storage/config.json.
133
- #
134
- # Key VERIFIED against omp v17.4.2 (2026-08-22): `compaction.thresholdTokens` is a
135
- # fixed token limit for context maintenance and overrides the percentage threshold
136
- # when set; omp's own default is -1 ("use compaction.thresholdPercent"). The key this
137
- # file shipped with in 2.2.1 — `compact.autoCompactWindow` — was a plan-time guess and
138
- # omp rejects it outright (`omp config get compact.autoCompactWindow` → "Unknown
139
- # setting"), so auto-compact never moved off omp's default. See PLAN.md §3 D13.
127
+ # omp-side auto-compaction, project-scoped (omp reads <project>/.omp/config.yml and it
128
+ # takes precedence over ~/.omp/agent/config.yml, which UKit never touches).
129
+ # Keys VERIFIED against omp v18.8.9 (`omp config get compaction.<key>`):
130
+ # thresholdTokens is a fixed token limit that overrides thresholdPercent when > 0
131
+ # (omp default -1).
132
+ # thresholdTokens = min(90000, Claude Code auto-compact window), so a small-context
133
+ # budget is never exceeded by the omp threshold. Starting default, not a hard limit:
134
+ # edit any value here and `ukit update` keeps it. The legacy shipped 350000 is migrated
135
+ # only when UKit's install ledger proves UKit wrote it; `ukit uninstall` reverts just
136
+ # UKit's own additions and keeps your edits. Auto-compact must still trigger BEFORE
137
+ # context-hardcap-gate blocks tool calls.
140
138
  compaction:
141
- thresholdTokens: {{compact.autoCompactWindow}}
139
+ enabled: true
140
+ thresholdTokens: {{omp.compactionThresholdTokens}}
141
+ midTurnEnabled: true
142
+ keepRecentTokens: 20000
143
+
144
+ # Per-agent native compaction thresholds (omp v18.8.9 `task.agentCompactionThresholdOverrides`,
145
+ # keyed by agent name, positive integer tokens). SOFT targets for scoped subagent context:
146
+ # omp compacts the agent's session when it grows past the value — this is NOT a request
147
+ # hard cap (one step can still jump past it). Per-key merge: any agent key you set stays;
148
+ # your other `task:` settings are never touched; `ukit uninstall` removes only these keys
149
+ # when they still carry the shipped value.
150
+ task:
151
+ agentCompactionThresholdOverrides:
152
+ feature-implementer: 80000
153
+ bug-debugger: 80000
154
+ code-reviewer: 80000
155
+ handoff-planner: 60000
156
+ ukit-small-task-maintainer: 40000
157
+ ukit-vision-analyst: 40000