Skip to content
Back to skills

Propuestas

ASecurity

Opus 4.7 + 1M context window (current default model: `claude-opus-4-7[1m]`) enables sessions long enough that context rot becomes a first-class concern. As context fills, attention spreads across more tokens, and model intelligence degrades well before the hard limit.

  • 50 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentsgodebuggingfrontend

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned October 4, 2026

npx -y skills add gonzalezpazmonica/savia --skill propuestas --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Propuestas?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Propuestas
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gonzalezpazmonica-propuestas-savia/badge)](https://www.skillsdirectory.com/skills/gonzalezpazmonica-propuestas-savia)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: SE-069
title: SE-069 — context-rot-strategy skill for 1M context sessions
status: IMPLEMENTED
origin: Opus 4.7 migration analysis 2026-04-23
author: Savia
priority: media
effort: M 5h
gap_link: 1M context window amplifies context rot; no explicit session management skill
approved_at: "2026-04-23"
applied_at: "2026-04-23"
batches: [34]
expires: "2026-05-23"
era: 186
---

# SE-069 — context-rot-strategy skill

## Purpose

Opus 4.7 + 1M context window (current default model: `claude-opus-4-7[1m]`) enables sessions long enough that context rot becomes a first-class concern. As context fills, attention spreads across more tokens, and model intelligence degrades well before the hard limit.

Current Savia skills cover context optimization (`context-optimized-dev`, `context-budget`, `context-compress`) but none formalize the 5-option mental model for per-turn session management or the "compact proactively" heuristic.

## Scope

### Slice 1 — New skill `context-rot-strategy` (M, 3h)

`.opencode/skills/context-rot-strategy/SKILL.md`:

**5-option model per turn:**
1. **Continue** — context still relevant, send another message
2. **Rewind** (double-Esc) — jump back to previous message, drop failed attempts
3. **/compact with hint** — lossy but steered summary ("focus on auth refactor, drop test debugging")
4. **/clear** — fresh session, manual note-taking of what matters
5. **Subagent** — delegate work that generates large intermediate output

**Decision tree:**
- Need the tool output again? → keep in context
- Just the conclusion? → subagent
- Multiple failed attempts clogging context? → rewind
- Session long but still focused? → /compact with hint
- Session drifted topics? → /clear + notes

**Proactive compaction heuristics:**
- Token counter > 60% → flag as yellow (consider compact)
- Token counter > 75% → compact proactively (don't wait for auto-compact at context-rot peak)
- Settings: `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=75` already in place 

### Slice 2 — DOMAIN.md (Clara Philosophy) (S, 1h)

`.opencode/skills/context-rot-strategy/DOMAIN.md`:
- Why context rot matters (attention diffusion)
- When each of the 5 options is correct
- Anti-patterns (waiting for auto-compact, narrating failures instead of rewinding)

### Slice 3 — BATS tests + script helpers (S, 1h)

`scripts/context-rot-advisor.sh`:
- Reads current context usage (via CLAUDE env vars / token counter if available)
- Recommends one of the 5 options based on thresholds
- BATS tests cover threshold boundaries + output format

> **Nota de calibración (2026-10-03, SE-376)**: `context-rot-advisor.sh` nunca se
> entregó aunque la spec figuraba IMPLEMENTED y la SKILL lo citaba. Se implementa como
> modo `--rot` de `scripts/context-meter.sh` (consolidación; un script nuevo subiría el
> ratchet de entropía SE-380). Ningún frontend exporta el % de contexto por env: la
> entrada es `--pct N`, `CONTEXT_PCT` o tokens. Sin datos → `continue-with-caution`;
> entrada inválida → exit 2 sin consejo. Tests: `tests/test-context-rot-strategy.bats`.

## Acceptance criteria

- Skill + DOMAIN.md follow existing 85-skill structure (frontmatter, Decision Checklist, Parameters)
- Advisor script produces deterministic output per usage %
- BATS ≥ 15 tests, score ≥ 80
- Skill registered in workspace (counts bump 85 → 86 skills)
- `readiness-check.sh` PASS (includes new skill in counts)

## Risks

| Riesgo | Prob | Impacto | Mitigación |
|---|---|---|---|
| Skill duplicates existing context-* skills | Alta | Bajo | Positioned as META-skill routing to others; doc explicitly calls out relationship |
| Advisor gives wrong advice if env vars not present | Media | Bajo | Graceful fallback to "continue with caution" |
| Prescriptive thresholds too aggressive/lenient | Media | Medio | Expose as settings env vars with documented defaults |

## No hacen

- Does NOT replace `context-optimized-dev`, `context-budget`, or `context-compress`
- Does NOT auto-invoke compact (user decision)
- Does NOT modify auto-compact settings (already at 75% override)

## Referencias

- Opus 4.7 migration guide: "Context rot is real. You have five options at every turn"
- Current `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=75` in settings.json
- Existing: `.opencode/skills/context-budget/`, `context-compress/`, `context-optimized-dev/`
- Complementary: SE-066..SE-068

Files in this skill

  • INDEX.md60.9 KB
  • LOG.md14.9 KB
  • ROADMAP-CURRENT.md1.7 KB
  • ROADMAP-UNIFIED-20260418.md11.4 KB
  • ROADMAP-UNIFIED-20260827.md10.4 KB
  • ROADMAP.md25.5 KB
  • SAVIA-SUPERPOWERS-ROADMAP.md3.5 KB
  • SE-028-oumi-integration.md7.2 KB
  • SE-029-rate-distortion-context.md10 KB
  • SE-030-graphrag-quality-gates.md6.3 KB
  • SE-031-query-library-nl.md5 KB
  • SE-032-reranker-layer.md8.7 KB
  • SE-033-topic-cluster.md2.4 KB
  • SE-034-workflow-node-typing.md1.8 KB
  • SE-035-mutation-testing-skill.md5.1 KB
  • SE-036-specs-frontmatter-migration.md4.2 KB
  • SE-037-hook-latency-audit.md4 KB
  • SE-038-agent-size-audit.md5.8 KB
  • SE-039-test-auditor-global-sweep.md5.6 KB
  • SE-040-agent-degradation-canary.md6.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…