kaizen-agentic/tests
tegwick 843cf4eee0 feat: agent authoring & doc generation (WP-0007, v1.4.0)
New authoring tooling and a fix for the doc-regeneration defect it exposed.

Added:
- src/kaizen_agentic/agent_docs.py — render + idempotent upsert of the
  CLAUDE.md "## Installed Agents" section (shared by installer and CLI)
- `kaizen-agentic docs generate [--check]` — idempotent doc refresh / CI gate
- `kaizen-agentic create-agent` — scaffold a schema-valid agent
- Frontmatter schema validation in `kaizen-agentic validate`
  (required name/description/category, known category, valid memory/model)
- tests: test_agent_docs, test_validate_schema, test_create_agent

Fixed:
- _update_documentation regex duplicated the Installed Agents block on every
  run (stopped at the first ### subheading) — now idempotent
- declared frontmatter `category` is authoritative (heuristic is fallback)
- list_installed_agents reads the frontmatter name, not the filename
- renamed agent-project-management.md -> agent-project-assistant.md to satisfy
  the agent-<name>.md convention (eliminates a name/filename collision that
  caused install/update to write a divergent duplicate)
- test_cli_error_handling no longer installs into the repo root (uses tmp)

Version 1.4.0; CHANGELOG, CLI cheat sheet, agency-framework, TODO updated.
Workplan KAIZEN-WP-0007 closed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 02:06:14 +02:00
..
__init__.py Add complete Kaizen Agentic framework foundation 2025-10-19 02:07:53 +02:00
test_agent_docs.py feat: agent authoring & doc generation (WP-0007, v1.4.0) 2026-06-18 02:06:14 +02:00
test_cli_error_handling.py feat: agent authoring & doc generation (WP-0007, v1.4.0) 2026-06-18 02:06:14 +02:00
test_core.py Add complete Kaizen Agentic framework foundation 2025-10-19 02:07:53 +02:00
test_create_agent.py feat: agent authoring & doc generation (WP-0007, v1.4.0) 2026-06-18 02:06:14 +02:00
test_e2e_agency_framework.py WP-0001: feedback channels, CI, pre-commit, telemetry docs 2026-06-16 01:58:07 +02:00
test_feedback_cli.py WP-0001: feedback channels, CI, pre-commit, telemetry docs 2026-06-16 01:58:07 +02:00
test_helix_correlation.py WP-0001: feedback channels, CI, pre-commit, telemetry docs 2026-06-16 01:58:07 +02:00
test_installer.py Fix linting violations for v1.0.0 release preparation 2025-10-19 20:44:58 +02:00
test_integration_patterns.py feat: scheduled agent execution via activity-core (WP-0006, v1.3.0) 2026-06-17 08:19:51 +02:00
test_metrics.py WP-0001: feedback channels, CI, pre-commit, telemetry docs 2026-06-16 01:58:07 +02:00
test_metrics_cli.py WP-0001: feedback channels, CI, pre-commit, telemetry docs 2026-06-16 01:58:07 +02:00
test_metrics_publish.py WP-0001: feedback channels, CI, pre-commit, telemetry docs 2026-06-16 01:58:07 +02:00
test_optimization_metrics.py WP-0001: feedback channels, CI, pre-commit, telemetry docs 2026-06-16 01:58:07 +02:00
test_packaged_agents_parity.py feat: WP-0005 adoption polish — doc sync, fleet parity, CI lint 2026-06-16 02:26:13 +02:00
test_path_compat.py WP-0001: feedback channels, CI, pre-commit, telemetry docs 2026-06-16 01:58:07 +02:00
test_registry.py WP-0001 complete: v1.1.0 lazy registry and install performance 2026-06-16 02:06:43 +02:00
test_registry_lazy_load.py WP-0001 complete: v1.1.0 lazy registry and install performance 2026-06-16 02:06:43 +02:00
test_schedule_cli.py feat: scheduled agent execution via activity-core (WP-0006, v1.3.0) 2026-06-17 08:19:51 +02:00
test_validate_schema.py feat: agent authoring & doc generation (WP-0007, v1.4.0) 2026-06-18 02:06:14 +02:00