Skip to content

[Feature] Tiered document lifecycle engine (4-tier state machine + config) #140

Description

@KbWen

Summary

A 4-tier document lifecycle state machine (active → warm → cold → archived) with config-driven transitions, governing how governance artifacts age and compact over time. This is the umbrella engine that the archive-GC, spec-filtering, and warm→cold summarization issues build on.

Motivation

Several data surfaces (archive/, Global Lessons, Spec Index, INDEX.jsonl) grow unbounded and rely only on advisory, per-surface compaction. A single lifecycle engine gives every surface a consistent, configurable aging policy instead of ad-hoc rules scattered across workflows.

Proposed Solution

  1. Define 4 tiers + transition triggers (age, count, status) in .agent/config.yaml.
  2. A driver that, at /ship or a maintenance pass, moves artifacts across tiers and invokes the matching compaction (GC / status-filter / summarization).
  3. Serve as the foundation for the archive-GC, spec-index-filtering, and warm→cold summarization work.

Files Affected

  • .agent/config.yaml
  • .agent/workflows/ship.md
  • new tool under .agentcortex/tools/

Scope

  • Guardrail update (.agent/rules/)
  • Deploy / tooling change

Backlog: docs/specs/_product-backlog.md #1. Related: existing issue #14 (Work Log auto-compaction) is one consumer of this engine.

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