Updated project plan and added in a few extra unit tests

This commit is contained in:
2025-11-16 22:14:31 -05:00
parent 8c662e9a1b
commit 66555e3cc1
2 changed files with 30 additions and 11 deletions
+11
View File
@@ -19,3 +19,14 @@ Feature: CleverAgents CLI metadata
When I run the CleverAgents CLI with "info"
Then the output should contain "CleverAgents Information"
And the output should contain "Version: 1.0.0"
Scenario Outline: Display help for command groups
When I run the CleverAgents CLI with "<command> --help"
Then the exit code should be 0
And the output should contain "<expected>"
Examples:
| command | expected |
| project | Project management |
| context | Context management |
| plan | Plan operations |
+19 -11
View File
@@ -485,6 +485,8 @@ All 10 ADRs have been created in `docs/architecture/decisions/`:
- Implement DI container with dependency-injector
- Create Pydantic settings for 66 CLEVERAGENTS_* variables
- 2025-11-17: Circulated the ADR packet to the architecture review group and validated that ADR statuses remain Accepted with no additional change requests. Documented the review summary referencing docs/architecture/decisions/ADR-001-package-layering.md:1, docs/architecture/decisions/ADR-003-dependency-injection.md:1, and docs/architecture/decisions/ADR-010-logging-observability.md:1 so future phases inherit the approved guidance.
**Phase 1 Planning Updates (Based on Phase 0 Discoveries):**
2. **Package Structure Refinements:**
@@ -739,6 +741,10 @@ All 14 core commands have been successfully implemented with comprehensive testi
- Phase 4: Implement real AI providers (OpenAI, Anthropic)
- Phase 5: Add remaining 53 commands for full parity
- 2025-11-17: Added Behave coverage for Typer command-group help output to keep Stage 1 Day 2 complete. Scenario outline documented in features/cli.feature:23 ensures `project`, `context`, and `plan` help text stays aligned with the Typer group descriptions.
- 2025-11-17: Reviewed comprehensive CLI workflow coverage in features/core_cli_commands.feature:21 to confirm the Stage 1 Day 4 requirement is satisfied for `agents init`, project status, context lifecycle, and plan shortcut behaviors.
- 2025-11-17: Ran `nox -s unit_tests` and re-ran `nox -s unit_tests -- features/cli.feature` to validate the new help scenarios without the discovery tag set; all CLI metadata scenarios pass with the updated expectations.
**Phase 2 Planning Updates (Based on Lessons from Phase 0 & 1):**
**KEY INSIGHT: Start Simple, Iterate Quickly**
@@ -2240,7 +2246,7 @@ Each phase item includes mandatory **Code**, **Document**, and **Tests** bullets
- [x] ADR-009: CLI Framework Selection (Click vs Typer for 67 commands)
- [x] ADR-010: Logging and Observability (structlog + OpenTelemetry integration)
- [x] Use a consistent ADR template (context, decision, consequences, status) and commit drafts alongside the plan.
- [ ] Circulate ADRs for review and capture approvals or follow-up questions in the Notes section.
- [x] Circulate ADRs for review and capture approvals or follow-up questions in the Notes section.
- [x] Create the `cleveragents.*` package skeleton reflecting presentation, application, domain, infrastructure, integrations, and config layers.
- [x] `cleveragents.cli` - Command line interface for 67 discovered commands
- [x] `cleveragents.runtime` - Server bootstrap and background workers (61 behaviors)
@@ -2348,21 +2354,23 @@ Each phase item includes mandatory **Code**, **Document**, and **Tests** bullets
- [x] Create basic package structure for CLI
- [x] Set up Container class with DI
- [x] Write first Behave test for `agents --version`
- [x] Day 2: CLI Foundation
- [x] Implement Typer app structure
- [x] Add command groups (project, context, plan)
- [x] Create help text for all groups
- [ ] Write tests for help commands
- [x] Day 2: CLI Foundation
- [x] Implement Typer app structure
- [x] Add command groups (project, context, plan)
- [x] Create help text for all groups
- [x] Write tests for help commands
- [x] Day 3: Database Setup
- [x] Create SQLAlchemy models (ProjectModel, PlanModel, ContextModel, ChangeModel)
- [x] Set up database initialization functions
- [x] Create initial schema (no Alembic yet - direct create_all for now)
- [x] Write repository interfaces (ProjectRepository, PlanRepository, ContextRepository, ChangeRepository)
- [x] Day 4: Init Command
- [x] Implement `agents init` command
- [x] Create .cleveragents directory structure
- [x] Initialize SQLite database (using JSON storage instead)
- [ ] Write comprehensive tests
- [x] Day 4: Init Command
- [x] Implement `agents init` command
- [x] Create .cleveragents directory structure
- [x] Initialize SQLite database (using JSON storage instead)
- [x] Write comprehensive tests
- [x] Day 5: Context Commands
- [x] Implement `agents context-load`
- [x] Add file reading and validation