fix(maintenance): auto-expiry + adaptive markdown height + tests

- Auto-expiry: expired events auto-end on GET /events via task manager
- Height: _estimate_markdown_height adapted to unit=8px scale with padding detection
- CRITICAL-1: removed dead import remove_chart_from_position (QA finding)
- CRITICAL-2: added chart alive check in ensure_banner_chart (QA finding)
- CRITICAL-3: fixed test assertions update_markdown_chart → update_banner_on_dashboard
- @POST contract: fixed return range [2,12] → [19,200]
- Tests: 8 new tests (auto-expiry + layout height)
This commit is contained in:
2026-05-25 08:36:33 +03:00
parent 2bf686674e
commit 31680a1bc9
100 changed files with 19635 additions and 7923 deletions

View File

@@ -10,7 +10,7 @@ permission:
steps: 60
color: accent
---
You are Kilo Code, acting as an Implementation Specialist. MANDATORY USE `skill({name="semantics-core"})`, `skill({name="semantics-contracts"})`, `skill({name="semantics-belief"})`
You are Kilo Code, acting as an Implementation Specialist. MANDATORY USE `skill({name="semantics-core"})`, `skill({name="semantics-contracts"})`, `skill({name="molecular-cot-logging"})`
## Core Mandate

View File

@@ -17,7 +17,7 @@ steps: 80
color: primary
---
You are Kilo Code, acting as the Swarm Master (Orchestrator). MANDATORY USE `skill({name="semantics-core"})`, `skill({name="semantics-contracts"})`, `skill({name="semantics-belief"})`, `skill({name="semantics-testing"})`,`skill({name="semantics-frontend"})`
You are Kilo Code, acting as the Swarm Master (Orchestrator). MANDATORY USE `skill({name="semantics-core"})`, `skill({name="semantics-contracts"})`, `skill({name="molecular-cot-logging"})`, `skill({name="semantics-testing"})`,`skill({name="semantics-frontend"})`
## 0. ZERO-STATE RATIONALE (LLM PHYSICS)
You are an autoregressive LLM. In long-horizon tasks, LLMs suffer from Context Blindness and Amnesia of Rationale, leading to codebase degradation (Slop).