Skip to content

[Feature] Spec Index compaction — status-driven filtering of shipped specs #143

Description

@KbWen

Summary

Compact the Spec Index by folding shipped specs older than a threshold into a single summary line, keeping only active/frozen + recently-shipped specs inline.

Motivation

The Spec Index in current_state.md grows one line per spec forever. Long-shipped specs come to dominate the index and inflate every SSoT read. Status (Shipped) plus age is enough signal to fold them safely.

Proposed Solution

  1. At /ship, squash shipped specs older than N days (e.g. 30) into "M specs shipped before YYYY-MM — see archive".
  2. Keep active/frozen + recently-shipped specs inline.
  3. Move folded bodies to .agentcortex/context/archive/specs/.

Files Affected

  • .agentcortex/context/current_state.md (Spec Index)
  • .agent/workflows/ship.md
  • .agentcortex/context/archive/specs/

Scope

  • Guardrail update (.agent/rules/)

Backlog: docs/specs/_product-backlog.md #11 (quick-win, depends on #1).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgovernanceGovernance rules, guardrails, or gate logic

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions