Project Lifecycle Specification
Version: 1.0.0 Status: DRAFT Created: 2026-01-27 Epic: Integration from RCSD Pipeline + Protocol StackRFC 2119 Conformance
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “NOT RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in BCP 14 [RFC 2119] [RFC 8174] when, and only when, they appear in all capitals.Part 1: Preamble
1.1 Purpose
This specification defines the Project Lifecycle - the end-to-end workflow for taking an idea from research through release. It integrates:- RCSD Pipeline (Research → Consensus → Specification → Decomposition)
- Protocol Stack (7 conditional protocols for subagent work)
- Release Workflow (automated release management)
1.2 Scope
This specification is AUTHORITATIVE for:- Lifecycle stage definitions and transitions
- Protocol selection per lifecycle stage
- Release workflow integration
- Orchestrator coordination patterns
- RCSD-PIPELINE-SPEC.md for RCSD stage details
- PROTOCOL-STACK-SPEC.md for protocol requirements
- Individual protocol files (
protocols/*.md) for protocol-specific rules
Part 2: Lifecycle Stages
2.1 Full Lifecycle Diagram
2.2 Stage Definitions
| Stage | Phase | Protocol | Purpose | Output |
|---|---|---|---|---|
| Research | setup | protocols/research.md | Gather information, explore options | Research findings, sources |
| Consensus | setup | protocols/consensus.md | Validate claims, resolve disputes | Voting records, verdicts |
| Specification | setup | protocols/specification.md | Define requirements formally | RFC 2119 spec document |
| Decomposition | setup | protocols/decomposition.md | Break into atomic tasks | Task hierarchy, waves |
| Implementation | core | protocols/implementation.md | Build functionality | Code, tests |
| Contribution | core | protocols/contribution.md | Track multi-agent work | Contribution records |
| Release | polish | protocols/release.md + cleo release ship | Version, changelog, publish | Tagged release |
2.3 Protocol Selection Matrix
| Task Type | Keywords | Auto-Selected Protocol |
|---|---|---|
| Research | research, investigate, explore, survey | research |
| Planning | epic, plan, decompose, architect | decomposition |
| Specification | spec, rfc, protocol, contract | specification |
| Implementation | implement, build, execute, create | implementation |
| Validation | validate, verify, audit, compliance | consensus |
| Release | release, version, publish, deploy | release |
Part 3: Protocol Stack Architecture
3.1 Two-Tier Structure
3.2 Seven Conditional Protocols
| Protocol | File | agent_type | Trigger Keywords |
|---|---|---|---|
| Research | protocols/research.md | research | research, investigate, explore |
| Consensus | protocols/consensus.md | analysis | vote, decide, validate claim |
| Specification | protocols/specification.md | specification | spec, rfc, define protocol |
| Decomposition | protocols/decomposition.md | analysis | epic, plan, decompose |
| Implementation | protocols/implementation.md | implementation | implement, build, code |
| Contribution | protocols/contribution.md | implementation | PR, merge, shared resource |
| Release | protocols/release.md | documentation | release, version, publish |
3.3 Protocol Interactions
Part 4: Release Workflow Integration
4.1 Release Commands
| Command | Purpose | When to Use |
|---|---|---|
cleo release create <version> | Register a new release, assign tasks | Start of release cycle |
cleo release plan <version> | Modify tasks, add notes | Adjust release scope |
cleo release ship <version> | Full release: bump, changelog, commit, tag, push | Ship the release |
dev/bump-version.sh | Updates VERSION + README only | Version bump without release |
dev/release-version.sh is DEPRECATED (since v0.78.0). Use cleo release ship.
4.2 Release Protocol + CLI Integration
Therelease protocol defines requirements; cleo release ship automates execution:
4.3 Release Workflow Commands
4.4 Pre-Release Checklist (RLSE-003)
| Gate | Command | Required |
|---|---|---|
| Tests pass | ./tests/run-all-tests.sh | MUST |
| Lint clean | shellcheck scripts/*.sh lib/*.sh | MUST |
| Schema valid | cleo validate | MUST |
| Version bumped | ./dev/bump-version.sh X.Y.Z | MUST |
| Changelog updated | Edit CHANGELOG.md | MUST |
| Docs current | Review docs/ | SHOULD |
| Install tested | ./install.sh | SHOULD |
Part 5: Orchestrator Integration
5.1 Orchestrator Role in Lifecycle
The Orchestrator (ct-orchestrator) coordinates the lifecycle by:- Session Management: Starting/resuming sessions scoped to epics
- Protocol Selection: Using
skill_auto_dispatch()to select protocols - Subagent Spawning: Using
skill_prepare_spawn()for token injection - Progress Tracking: Reading MANIFEST.jsonl for subagent outputs
- Release Coordination: Triggering release workflow when phase complete
5.2 Orchestrator Lifecycle Commands
5.3 Dispatch Matrix Updates
The dispatch matrix inskills/manifest.json SHOULD be extended for release:
Part 6: RCSD Pipeline Integration
6.1 RCSD-to-Protocol Mapping
| RCSD Stage | Protocol | Skill | Output |
|---|---|---|---|
| R: Research | protocols/research.md | ct-research-agent | .cleo/rcsd/T###/research/ |
| C: Consensus | protocols/consensus.md | ct-validator | .cleo/rcsd/T###/consensus/ |
| S: Specification | protocols/specification.md | ct-spec-writer | .cleo/rcsd/T###/spec/ |
| D: Decomposition | protocols/decomposition.md | ct-epic-architect | .cleo/rcsd/T###/tasks/ |
6.2 Post-RCSD Execution
After RCSD completes (tasks decomposed), execution begins:6.3 Full Workflow Example
Part 7: Conformance
7.1 Required Protocol Support
A conforming orchestrator MUST:- Support all 7 conditional protocols
- Auto-select protocols based on task type/keywords
- Inject protocols via
skill_prepare_spawn() - Track outputs via MANIFEST.jsonl
- Support release workflow integration
7.2 Required Release Support
A conforming release workflow MUST:- Follow RLSE-001 through RLSE-007 requirements
- Use
cleo release create→cleo release shipfor automation - Generate Mintlify changelog
- Create git tags
- Update version consistently across files
Appendix A: Quick Reference
Protocol File Locations
Release Commands & Scripts
Shared Protocol References
Appendix B: Changelog
| Version | Date | Changes |
|---|---|---|
| 1.0.0 | 2026-01-27 | Initial specification integrating RCSD + Protocol Stack + Release |
End of Specification
