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
- Define 4 tiers + transition triggers (age, count, status) in
.agent/config.yaml.
- A driver that, at
/ship or a maintenance pass, moves artifacts across tiers and invokes the matching compaction (GC / status-filter / summarization).
- 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
Backlog: docs/specs/_product-backlog.md #1. Related: existing issue #14 (Work Log auto-compaction) is one consumer of this engine.
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
.agent/config.yaml./shipor a maintenance pass, moves artifacts across tiers and invokes the matching compaction (GC / status-filter / summarization).Files Affected
.agent/config.yaml.agent/workflows/ship.md.agentcortex/tools/Scope
.agent/rules/)Backlog:
docs/specs/_product-backlog.md#1. Related: existing issue #14 (Work Log auto-compaction) is one consumer of this engine.