claude-mpm 4.7.4__py3-none-any.whl → 4.18.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- claude_mpm/VERSION +1 -1
- claude_mpm/agents/BASE_AGENT_TEMPLATE.md +118 -0
- claude_mpm/agents/BASE_ENGINEER.md +286 -0
- claude_mpm/agents/BASE_PM.md +106 -1
- claude_mpm/agents/OUTPUT_STYLE.md +329 -11
- claude_mpm/agents/PM_INSTRUCTIONS.md +397 -459
- claude_mpm/agents/agent_loader.py +17 -5
- claude_mpm/agents/frontmatter_validator.py +284 -253
- claude_mpm/agents/templates/README.md +465 -0
- claude_mpm/agents/templates/agent-manager.json +4 -1
- claude_mpm/agents/templates/agentic-coder-optimizer.json +13 -3
- claude_mpm/agents/templates/api_qa.json +11 -2
- claude_mpm/agents/templates/circuit_breakers.md +638 -0
- claude_mpm/agents/templates/clerk-ops.json +12 -2
- claude_mpm/agents/templates/code_analyzer.json +8 -2
- claude_mpm/agents/templates/content-agent.json +358 -0
- claude_mpm/agents/templates/dart_engineer.json +15 -2
- claude_mpm/agents/templates/data_engineer.json +15 -2
- claude_mpm/agents/templates/documentation.json +10 -2
- claude_mpm/agents/templates/engineer.json +21 -1
- claude_mpm/agents/templates/gcp_ops_agent.json +12 -2
- claude_mpm/agents/templates/git_file_tracking.md +584 -0
- claude_mpm/agents/templates/golang_engineer.json +270 -0
- claude_mpm/agents/templates/imagemagick.json +4 -1
- claude_mpm/agents/templates/java_engineer.json +346 -0
- claude_mpm/agents/templates/local_ops_agent.json +1227 -6
- claude_mpm/agents/templates/memory_manager.json +4 -1
- claude_mpm/agents/templates/nextjs_engineer.json +141 -133
- claude_mpm/agents/templates/ops.json +12 -2
- claude_mpm/agents/templates/php-engineer.json +270 -174
- claude_mpm/agents/templates/pm_examples.md +474 -0
- claude_mpm/agents/templates/pm_red_flags.md +240 -0
- claude_mpm/agents/templates/product_owner.json +338 -0
- claude_mpm/agents/templates/project_organizer.json +14 -4
- claude_mpm/agents/templates/prompt-engineer.json +13 -2
- claude_mpm/agents/templates/python_engineer.json +174 -81
- claude_mpm/agents/templates/qa.json +11 -2
- claude_mpm/agents/templates/react_engineer.json +16 -3
- claude_mpm/agents/templates/refactoring_engineer.json +12 -2
- claude_mpm/agents/templates/research.json +34 -21
- claude_mpm/agents/templates/response_format.md +583 -0
- claude_mpm/agents/templates/ruby-engineer.json +129 -192
- claude_mpm/agents/templates/rust_engineer.json +270 -0
- claude_mpm/agents/templates/security.json +10 -2
- claude_mpm/agents/templates/svelte-engineer.json +225 -0
- claude_mpm/agents/templates/ticketing.json +10 -2
- claude_mpm/agents/templates/typescript_engineer.json +116 -125
- claude_mpm/agents/templates/validation_templates.md +312 -0
- claude_mpm/agents/templates/vercel_ops_agent.json +12 -2
- claude_mpm/agents/templates/version_control.json +12 -2
- claude_mpm/agents/templates/web_qa.json +11 -2
- claude_mpm/agents/templates/web_ui.json +15 -2
- claude_mpm/cli/__init__.py +34 -614
- claude_mpm/cli/commands/agent_manager.py +25 -12
- claude_mpm/cli/commands/agent_state_manager.py +186 -0
- claude_mpm/cli/commands/agents.py +235 -148
- claude_mpm/cli/commands/agents_detect.py +380 -0
- claude_mpm/cli/commands/agents_recommend.py +309 -0
- claude_mpm/cli/commands/aggregate.py +7 -3
- claude_mpm/cli/commands/analyze.py +9 -4
- claude_mpm/cli/commands/analyze_code.py +7 -2
- claude_mpm/cli/commands/auto_configure.py +570 -0
- claude_mpm/cli/commands/config.py +47 -13
- claude_mpm/cli/commands/configure.py +419 -1571
- claude_mpm/cli/commands/configure_agent_display.py +261 -0
- claude_mpm/cli/commands/configure_behavior_manager.py +204 -0
- claude_mpm/cli/commands/configure_hook_manager.py +225 -0
- claude_mpm/cli/commands/configure_models.py +18 -0
- claude_mpm/cli/commands/configure_navigation.py +167 -0
- claude_mpm/cli/commands/configure_paths.py +104 -0
- claude_mpm/cli/commands/configure_persistence.py +254 -0
- claude_mpm/cli/commands/configure_startup_manager.py +646 -0
- claude_mpm/cli/commands/configure_template_editor.py +497 -0
- claude_mpm/cli/commands/configure_validators.py +73 -0
- claude_mpm/cli/commands/local_deploy.py +537 -0
- claude_mpm/cli/commands/memory.py +54 -20
- claude_mpm/cli/commands/mpm_init.py +585 -196
- claude_mpm/cli/commands/mpm_init_handler.py +37 -3
- claude_mpm/cli/commands/search.py +170 -4
- claude_mpm/cli/commands/upgrade.py +152 -0
- claude_mpm/cli/executor.py +202 -0
- claude_mpm/cli/helpers.py +105 -0
- claude_mpm/cli/interactive/__init__.py +3 -0
- claude_mpm/cli/interactive/skills_wizard.py +491 -0
- claude_mpm/cli/parsers/__init__.py +7 -1
- claude_mpm/cli/parsers/agents_parser.py +9 -0
- claude_mpm/cli/parsers/auto_configure_parser.py +245 -0
- claude_mpm/cli/parsers/base_parser.py +110 -3
- claude_mpm/cli/parsers/local_deploy_parser.py +227 -0
- claude_mpm/cli/parsers/mpm_init_parser.py +65 -5
- claude_mpm/cli/shared/output_formatters.py +28 -19
- claude_mpm/cli/startup.py +481 -0
- claude_mpm/cli/utils.py +52 -1
- claude_mpm/commands/mpm-agents-detect.md +168 -0
- claude_mpm/commands/mpm-agents-recommend.md +214 -0
- claude_mpm/commands/mpm-agents.md +75 -1
- claude_mpm/commands/mpm-auto-configure.md +217 -0
- claude_mpm/commands/mpm-help.md +163 -0
- claude_mpm/commands/mpm-init.md +148 -3
- claude_mpm/commands/mpm-version.md +113 -0
- claude_mpm/commands/mpm.md +1 -0
- claude_mpm/config/agent_config.py +2 -2
- claude_mpm/config/model_config.py +428 -0
- claude_mpm/constants.py +1 -0
- claude_mpm/core/base_service.py +13 -12
- claude_mpm/core/enums.py +452 -0
- claude_mpm/core/factories.py +1 -1
- claude_mpm/core/instruction_reinforcement_hook.py +2 -1
- claude_mpm/core/interactive_session.py +9 -3
- claude_mpm/core/log_manager.py +2 -0
- claude_mpm/core/logging_config.py +6 -2
- claude_mpm/core/oneshot_session.py +8 -4
- claude_mpm/core/optimized_agent_loader.py +3 -3
- claude_mpm/core/output_style_manager.py +12 -192
- claude_mpm/core/service_registry.py +5 -1
- claude_mpm/core/types.py +2 -9
- claude_mpm/core/typing_utils.py +7 -6
- claude_mpm/dashboard/static/js/dashboard.js +0 -14
- claude_mpm/dashboard/templates/index.html +3 -41
- claude_mpm/hooks/__init__.py +20 -0
- claude_mpm/hooks/claude_hooks/event_handlers.py +4 -2
- claude_mpm/hooks/claude_hooks/response_tracking.py +35 -1
- claude_mpm/hooks/claude_hooks/services/connection_manager_http.py +23 -2
- claude_mpm/hooks/failure_learning/__init__.py +60 -0
- claude_mpm/hooks/failure_learning/failure_detection_hook.py +235 -0
- claude_mpm/hooks/failure_learning/fix_detection_hook.py +217 -0
- claude_mpm/hooks/failure_learning/learning_extraction_hook.py +286 -0
- claude_mpm/hooks/instruction_reinforcement.py +7 -2
- claude_mpm/hooks/kuzu_enrichment_hook.py +263 -0
- claude_mpm/hooks/kuzu_memory_hook.py +37 -12
- claude_mpm/hooks/kuzu_response_hook.py +183 -0
- claude_mpm/models/resume_log.py +340 -0
- claude_mpm/services/agents/__init__.py +18 -5
- claude_mpm/services/agents/auto_config_manager.py +796 -0
- claude_mpm/services/agents/deployment/agent_configuration_manager.py +1 -1
- claude_mpm/services/agents/deployment/agent_record_service.py +1 -1
- claude_mpm/services/agents/deployment/agent_validator.py +17 -1
- claude_mpm/services/agents/deployment/async_agent_deployment.py +1 -1
- claude_mpm/services/agents/deployment/interface_adapter.py +3 -2
- claude_mpm/services/agents/deployment/local_template_deployment.py +1 -1
- claude_mpm/services/agents/deployment/pipeline/steps/agent_processing_step.py +7 -6
- claude_mpm/services/agents/deployment/pipeline/steps/base_step.py +7 -16
- claude_mpm/services/agents/deployment/pipeline/steps/configuration_step.py +4 -3
- claude_mpm/services/agents/deployment/pipeline/steps/target_directory_step.py +5 -3
- claude_mpm/services/agents/deployment/pipeline/steps/validation_step.py +6 -5
- claude_mpm/services/agents/deployment/refactored_agent_deployment_service.py +9 -6
- claude_mpm/services/agents/deployment/validation/__init__.py +3 -1
- claude_mpm/services/agents/deployment/validation/validation_result.py +1 -9
- claude_mpm/services/agents/local_template_manager.py +1 -1
- claude_mpm/services/agents/memory/agent_memory_manager.py +5 -2
- claude_mpm/services/agents/observers.py +547 -0
- claude_mpm/services/agents/recommender.py +568 -0
- claude_mpm/services/agents/registry/modification_tracker.py +5 -2
- claude_mpm/services/command_handler_service.py +11 -5
- claude_mpm/services/core/__init__.py +33 -1
- claude_mpm/services/core/interfaces/__init__.py +90 -3
- claude_mpm/services/core/interfaces/agent.py +184 -0
- claude_mpm/services/core/interfaces/health.py +172 -0
- claude_mpm/services/core/interfaces/model.py +281 -0
- claude_mpm/services/core/interfaces/process.py +372 -0
- claude_mpm/services/core/interfaces/project.py +121 -0
- claude_mpm/services/core/interfaces/restart.py +307 -0
- claude_mpm/services/core/interfaces/stability.py +260 -0
- claude_mpm/services/core/memory_manager.py +11 -24
- claude_mpm/services/core/models/__init__.py +79 -0
- claude_mpm/services/core/models/agent_config.py +381 -0
- claude_mpm/services/core/models/health.py +162 -0
- claude_mpm/services/core/models/process.py +235 -0
- claude_mpm/services/core/models/restart.py +302 -0
- claude_mpm/services/core/models/stability.py +264 -0
- claude_mpm/services/core/models/toolchain.py +306 -0
- claude_mpm/services/core/path_resolver.py +23 -7
- claude_mpm/services/diagnostics/__init__.py +2 -2
- claude_mpm/services/diagnostics/checks/agent_check.py +25 -24
- claude_mpm/services/diagnostics/checks/claude_code_check.py +24 -23
- claude_mpm/services/diagnostics/checks/common_issues_check.py +25 -24
- claude_mpm/services/diagnostics/checks/configuration_check.py +24 -23
- claude_mpm/services/diagnostics/checks/filesystem_check.py +18 -17
- claude_mpm/services/diagnostics/checks/installation_check.py +30 -29
- claude_mpm/services/diagnostics/checks/instructions_check.py +20 -19
- claude_mpm/services/diagnostics/checks/mcp_check.py +50 -36
- claude_mpm/services/diagnostics/checks/mcp_services_check.py +38 -33
- claude_mpm/services/diagnostics/checks/monitor_check.py +23 -22
- claude_mpm/services/diagnostics/checks/startup_log_check.py +9 -8
- claude_mpm/services/diagnostics/diagnostic_runner.py +6 -5
- claude_mpm/services/diagnostics/doctor_reporter.py +28 -25
- claude_mpm/services/diagnostics/models.py +19 -24
- claude_mpm/services/infrastructure/monitoring/__init__.py +1 -1
- claude_mpm/services/infrastructure/monitoring/aggregator.py +12 -12
- claude_mpm/services/infrastructure/monitoring/base.py +5 -13
- claude_mpm/services/infrastructure/monitoring/network.py +7 -6
- claude_mpm/services/infrastructure/monitoring/process.py +13 -12
- claude_mpm/services/infrastructure/monitoring/resources.py +7 -6
- claude_mpm/services/infrastructure/monitoring/service.py +16 -15
- claude_mpm/services/infrastructure/resume_log_generator.py +439 -0
- claude_mpm/services/local_ops/__init__.py +163 -0
- claude_mpm/services/local_ops/crash_detector.py +257 -0
- claude_mpm/services/local_ops/health_checks/__init__.py +28 -0
- claude_mpm/services/local_ops/health_checks/http_check.py +224 -0
- claude_mpm/services/local_ops/health_checks/process_check.py +236 -0
- claude_mpm/services/local_ops/health_checks/resource_check.py +255 -0
- claude_mpm/services/local_ops/health_manager.py +430 -0
- claude_mpm/services/local_ops/log_monitor.py +396 -0
- claude_mpm/services/local_ops/memory_leak_detector.py +294 -0
- claude_mpm/services/local_ops/process_manager.py +595 -0
- claude_mpm/services/local_ops/resource_monitor.py +331 -0
- claude_mpm/services/local_ops/restart_manager.py +401 -0
- claude_mpm/services/local_ops/restart_policy.py +387 -0
- claude_mpm/services/local_ops/state_manager.py +372 -0
- claude_mpm/services/local_ops/unified_manager.py +600 -0
- claude_mpm/services/mcp_config_manager.py +9 -4
- claude_mpm/services/mcp_gateway/core/__init__.py +1 -2
- claude_mpm/services/mcp_gateway/core/base.py +18 -31
- claude_mpm/services/mcp_gateway/main.py +30 -0
- claude_mpm/services/mcp_gateway/tools/external_mcp_services.py +206 -32
- claude_mpm/services/mcp_gateway/tools/health_check_tool.py +30 -28
- claude_mpm/services/mcp_gateway/tools/kuzu_memory_service.py +25 -5
- claude_mpm/services/mcp_service_verifier.py +1 -1
- claude_mpm/services/memory/failure_tracker.py +563 -0
- claude_mpm/services/memory_hook_service.py +165 -4
- claude_mpm/services/model/__init__.py +147 -0
- claude_mpm/services/model/base_provider.py +365 -0
- claude_mpm/services/model/claude_provider.py +412 -0
- claude_mpm/services/model/model_router.py +453 -0
- claude_mpm/services/model/ollama_provider.py +415 -0
- claude_mpm/services/monitor/daemon_manager.py +3 -2
- claude_mpm/services/monitor/handlers/dashboard.py +2 -1
- claude_mpm/services/monitor/handlers/hooks.py +2 -1
- claude_mpm/services/monitor/management/lifecycle.py +3 -2
- claude_mpm/services/monitor/server.py +2 -1
- claude_mpm/services/project/__init__.py +23 -0
- claude_mpm/services/project/detection_strategies.py +719 -0
- claude_mpm/services/project/toolchain_analyzer.py +581 -0
- claude_mpm/services/self_upgrade_service.py +342 -0
- claude_mpm/services/session_management_service.py +3 -2
- claude_mpm/services/session_manager.py +205 -1
- claude_mpm/services/shared/async_service_base.py +16 -27
- claude_mpm/services/shared/lifecycle_service_base.py +1 -14
- claude_mpm/services/socketio/handlers/__init__.py +5 -2
- claude_mpm/services/socketio/handlers/hook.py +13 -2
- claude_mpm/services/socketio/handlers/registry.py +4 -2
- claude_mpm/services/socketio/server/main.py +10 -8
- claude_mpm/services/subprocess_launcher_service.py +14 -5
- claude_mpm/services/unified/analyzer_strategies/code_analyzer.py +8 -7
- claude_mpm/services/unified/analyzer_strategies/dependency_analyzer.py +6 -5
- claude_mpm/services/unified/analyzer_strategies/performance_analyzer.py +8 -7
- claude_mpm/services/unified/analyzer_strategies/security_analyzer.py +7 -6
- claude_mpm/services/unified/analyzer_strategies/structure_analyzer.py +5 -4
- claude_mpm/services/unified/config_strategies/validation_strategy.py +13 -9
- claude_mpm/services/unified/deployment_strategies/cloud_strategies.py +10 -3
- claude_mpm/services/unified/deployment_strategies/local.py +6 -5
- claude_mpm/services/unified/deployment_strategies/utils.py +6 -5
- claude_mpm/services/unified/deployment_strategies/vercel.py +7 -6
- claude_mpm/services/unified/interfaces.py +3 -1
- claude_mpm/services/unified/unified_analyzer.py +14 -10
- claude_mpm/services/unified/unified_config.py +2 -1
- claude_mpm/services/unified/unified_deployment.py +9 -4
- claude_mpm/services/version_service.py +104 -1
- claude_mpm/skills/__init__.py +21 -0
- claude_mpm/skills/bundled/__init__.py +6 -0
- claude_mpm/skills/bundled/api-documentation.md +393 -0
- claude_mpm/skills/bundled/async-testing.md +571 -0
- claude_mpm/skills/bundled/code-review.md +143 -0
- claude_mpm/skills/bundled/database-migration.md +199 -0
- claude_mpm/skills/bundled/docker-containerization.md +194 -0
- claude_mpm/skills/bundled/express-local-dev.md +1429 -0
- claude_mpm/skills/bundled/fastapi-local-dev.md +1199 -0
- claude_mpm/skills/bundled/git-workflow.md +414 -0
- claude_mpm/skills/bundled/imagemagick.md +204 -0
- claude_mpm/skills/bundled/json-data-handling.md +223 -0
- claude_mpm/skills/bundled/nextjs-local-dev.md +807 -0
- claude_mpm/skills/bundled/pdf.md +141 -0
- claude_mpm/skills/bundled/performance-profiling.md +567 -0
- claude_mpm/skills/bundled/refactoring-patterns.md +180 -0
- claude_mpm/skills/bundled/security-scanning.md +327 -0
- claude_mpm/skills/bundled/systematic-debugging.md +473 -0
- claude_mpm/skills/bundled/test-driven-development.md +378 -0
- claude_mpm/skills/bundled/vite-local-dev.md +1061 -0
- claude_mpm/skills/bundled/web-performance-optimization.md +2305 -0
- claude_mpm/skills/bundled/xlsx.md +157 -0
- claude_mpm/skills/registry.py +286 -0
- claude_mpm/skills/skill_manager.py +310 -0
- claude_mpm/storage/state_storage.py +15 -15
- claude_mpm/tools/code_tree_analyzer.py +177 -141
- claude_mpm/tools/code_tree_events.py +4 -2
- claude_mpm/utils/agent_dependency_loader.py +40 -20
- claude_mpm/utils/display_helper.py +260 -0
- claude_mpm/utils/git_analyzer.py +407 -0
- claude_mpm/utils/robust_installer.py +73 -19
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/METADATA +129 -12
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/RECORD +295 -193
- claude_mpm/dashboard/static/css/code-tree.css +0 -1639
- claude_mpm/dashboard/static/index-hub-backup.html +0 -713
- claude_mpm/dashboard/static/js/components/code-tree/tree-breadcrumb.js +0 -353
- claude_mpm/dashboard/static/js/components/code-tree/tree-constants.js +0 -235
- claude_mpm/dashboard/static/js/components/code-tree/tree-search.js +0 -409
- claude_mpm/dashboard/static/js/components/code-tree/tree-utils.js +0 -435
- claude_mpm/dashboard/static/js/components/code-tree.js +0 -5869
- claude_mpm/dashboard/static/js/components/code-viewer.js +0 -1386
- claude_mpm/hooks/claude_hooks/hook_handler_eventbus.py +0 -425
- claude_mpm/hooks/claude_hooks/hook_handler_original.py +0 -1041
- claude_mpm/hooks/claude_hooks/hook_handler_refactored.py +0 -347
- claude_mpm/services/agents/deployment/agent_lifecycle_manager_refactored.py +0 -575
- claude_mpm/services/project/analyzer_refactored.py +0 -450
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/WHEEL +0 -0
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/entry_points.txt +0 -0
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/licenses/LICENSE +0 -0
- {claude_mpm-4.7.4.dist-info → claude_mpm-4.18.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
# PM Response Format Templates
|
|
2
|
+
|
|
3
|
+
**Purpose**: This file contains standardized JSON schemas and templates for PM session summaries. These templates ensure consistent, structured responses that capture all critical information about delegation, verification, and outcomes.
|
|
4
|
+
|
|
5
|
+
**Version**: 1.0.0
|
|
6
|
+
**Last Updated**: 2025-10-21
|
|
7
|
+
**Parent Document**: [PM_INSTRUCTIONS.md](../PM_INSTRUCTIONS.md)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Table of Contents
|
|
12
|
+
|
|
13
|
+
1. [Overview](#overview)
|
|
14
|
+
2. [Complete JSON Schema](#complete-json-schema)
|
|
15
|
+
3. [Field Descriptions](#field-descriptions)
|
|
16
|
+
4. [Example Responses](#example-responses)
|
|
17
|
+
5. [Validation Checklist](#validation-checklist)
|
|
18
|
+
6. [Common Mistakes to Avoid](#common-mistakes-to-avoid)
|
|
19
|
+
7. [Integration with Other Systems](#integration-with-other-systems)
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Overview
|
|
24
|
+
|
|
25
|
+
PM responses must follow a structured JSON format to ensure:
|
|
26
|
+
- **Complete delegation tracking**: All delegated tasks and agents used
|
|
27
|
+
- **Evidence-based assertions**: Every claim backed by verification
|
|
28
|
+
- **File tracking accountability**: All new files tracked in git with context
|
|
29
|
+
- **Measurable outcomes**: Concrete, verifiable results
|
|
30
|
+
- **Actionable next steps**: Clear path forward if work is incomplete
|
|
31
|
+
|
|
32
|
+
**Required Structure**: All PM session summaries MUST be JSON-structured with the fields defined in the schema below.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Complete JSON Schema
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"session_summary": {
|
|
41
|
+
"user_request": "Original user request in their own words",
|
|
42
|
+
"approach": "High-level phases executed (e.g., Research → Analysis → Implementation → Verification → Documentation)",
|
|
43
|
+
"delegation_summary": {
|
|
44
|
+
"tasks_delegated": [
|
|
45
|
+
"agent1: specific task delegated",
|
|
46
|
+
"agent2: specific task delegated"
|
|
47
|
+
],
|
|
48
|
+
"violations_detected": 0,
|
|
49
|
+
"evidence_collected": true
|
|
50
|
+
},
|
|
51
|
+
"implementation": {
|
|
52
|
+
"delegated_to": "agent_name",
|
|
53
|
+
"status": "completed|failed|partial",
|
|
54
|
+
"key_changes": [
|
|
55
|
+
"Change 1: description",
|
|
56
|
+
"Change 2: description"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"verification_results": {
|
|
60
|
+
"qa_tests_run": true,
|
|
61
|
+
"tests_passed": "X/Y",
|
|
62
|
+
"qa_agent_used": "agent_name",
|
|
63
|
+
"evidence_type": "type (e.g., fetch_response, playwright_screenshot, test_output, log_analysis)",
|
|
64
|
+
"verification_evidence": "actual output/logs/metrics from verification"
|
|
65
|
+
},
|
|
66
|
+
"file_tracking": {
|
|
67
|
+
"new_files_created": [
|
|
68
|
+
"/absolute/path/to/file1",
|
|
69
|
+
"/absolute/path/to/file2"
|
|
70
|
+
],
|
|
71
|
+
"files_tracked_in_git": true,
|
|
72
|
+
"commits_made": [
|
|
73
|
+
"commit_hash: commit_message"
|
|
74
|
+
],
|
|
75
|
+
"untracked_files_remaining": []
|
|
76
|
+
},
|
|
77
|
+
"assertions_made": {
|
|
78
|
+
"claim1": "evidence_source (e.g., 'QA verified with curl', 'Engineer confirmed in logs')",
|
|
79
|
+
"claim2": "verification_method"
|
|
80
|
+
},
|
|
81
|
+
"blockers": [
|
|
82
|
+
"Blocker 1: description and impact",
|
|
83
|
+
"Blocker 2: description and impact"
|
|
84
|
+
],
|
|
85
|
+
"next_steps": [
|
|
86
|
+
"Step 1: action required",
|
|
87
|
+
"Step 2: action required"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Field Descriptions
|
|
96
|
+
|
|
97
|
+
### `user_request` (string, required)
|
|
98
|
+
- **Purpose**: Capture the original user request verbatim
|
|
99
|
+
- **Format**: Direct quote or accurate paraphrase
|
|
100
|
+
- **Example**: "Fix the authentication bug in the login endpoint"
|
|
101
|
+
|
|
102
|
+
### `approach` (string, required)
|
|
103
|
+
- **Purpose**: High-level summary of the workflow phases executed
|
|
104
|
+
- **Format**: Phase names separated by arrows (→)
|
|
105
|
+
- **Example**: "Research → Code Analysis → Engineer Implementation → QA Verification"
|
|
106
|
+
|
|
107
|
+
### `delegation_summary` (object, required)
|
|
108
|
+
Container for all delegation-related tracking.
|
|
109
|
+
|
|
110
|
+
#### `tasks_delegated` (array of strings, required)
|
|
111
|
+
- **Purpose**: Track every task delegated to agents
|
|
112
|
+
- **Format**: `"agent_name: specific task description"`
|
|
113
|
+
- **Example**: `["Engineer: Implement OAuth2 authentication", "QA: Verify login flow with test cases"]`
|
|
114
|
+
|
|
115
|
+
#### `violations_detected` (number, required)
|
|
116
|
+
- **Purpose**: Count of PM delegation violations in session
|
|
117
|
+
- **Format**: Integer (0 = perfect session)
|
|
118
|
+
- **Severity Levels**:
|
|
119
|
+
- 0 violations: ✅ A+ session
|
|
120
|
+
- 1 violation: ⚠️ Warning
|
|
121
|
+
- 2 violations: 🚨 Critical
|
|
122
|
+
- 3+ violations: ❌ Session compromised
|
|
123
|
+
|
|
124
|
+
#### `evidence_collected` (boolean, required)
|
|
125
|
+
- **Purpose**: Confirm all assertions are backed by agent evidence
|
|
126
|
+
- **Format**: `true` if all claims have evidence, `false` if any unverified assertions
|
|
127
|
+
- **Impact**: Must be `true` to claim work complete
|
|
128
|
+
|
|
129
|
+
### `implementation` (object, required)
|
|
130
|
+
Container for implementation details.
|
|
131
|
+
|
|
132
|
+
#### `delegated_to` (string, required)
|
|
133
|
+
- **Purpose**: Track which agent performed the implementation
|
|
134
|
+
- **Format**: Agent name
|
|
135
|
+
- **Example**: `"python-engineer"`, `"react-engineer"`
|
|
136
|
+
|
|
137
|
+
#### `status` (string, required)
|
|
138
|
+
- **Purpose**: Implementation outcome
|
|
139
|
+
- **Format**: One of: `"completed"`, `"failed"`, `"partial"`
|
|
140
|
+
- **Criteria**:
|
|
141
|
+
- `completed`: All requirements met and verified
|
|
142
|
+
- `failed`: Implementation unsuccessful, blockers exist
|
|
143
|
+
- `partial`: Some requirements met, some remain
|
|
144
|
+
|
|
145
|
+
#### `key_changes` (array of strings, required)
|
|
146
|
+
- **Purpose**: List major changes made during implementation
|
|
147
|
+
- **Format**: Brief descriptions of each significant change
|
|
148
|
+
- **Example**: `["Added JWT authentication middleware", "Updated user model with password hashing"]`
|
|
149
|
+
|
|
150
|
+
### `verification_results` (object, required)
|
|
151
|
+
Container for all QA and verification evidence.
|
|
152
|
+
|
|
153
|
+
#### `qa_tests_run` (boolean, required)
|
|
154
|
+
- **Purpose**: Confirm testing was performed
|
|
155
|
+
- **Format**: `true` if tests executed, `false` if no testing
|
|
156
|
+
- **Rule**: Must be `true` to claim work complete
|
|
157
|
+
|
|
158
|
+
#### `tests_passed` (string, required)
|
|
159
|
+
- **Purpose**: Quantify test success rate
|
|
160
|
+
- **Format**: `"X/Y"` where X = passed, Y = total
|
|
161
|
+
- **Example**: `"15/15"`, `"8/10"`
|
|
162
|
+
|
|
163
|
+
#### `qa_agent_used` (string, required)
|
|
164
|
+
- **Purpose**: Track which QA agent verified the work
|
|
165
|
+
- **Format**: Agent name
|
|
166
|
+
- **Example**: `"web-qa"`, `"api-qa"`, `"local-ops-agent"`
|
|
167
|
+
|
|
168
|
+
#### `evidence_type` (string, required)
|
|
169
|
+
- **Purpose**: Categorize the type of verification evidence
|
|
170
|
+
- **Format**: One of: `fetch_response`, `playwright_screenshot`, `test_output`, `log_analysis`, `benchmark_results`
|
|
171
|
+
- **Example**: `"fetch_response"`
|
|
172
|
+
|
|
173
|
+
#### `verification_evidence` (string, required)
|
|
174
|
+
- **Purpose**: Actual evidence from verification (the proof!)
|
|
175
|
+
- **Format**: Actual output, logs, metrics, or detailed description
|
|
176
|
+
- **Example**: `"HTTP 200 OK, Response: {\"status\": \"authenticated\", \"user\": \"test@example.com\"}"`
|
|
177
|
+
- **Rule**: Must contain ACTUAL data, not claims like "should work"
|
|
178
|
+
|
|
179
|
+
### `file_tracking` (object, required)
|
|
180
|
+
Container for git file tracking accountability.
|
|
181
|
+
|
|
182
|
+
#### `new_files_created` (array of strings, required)
|
|
183
|
+
- **Purpose**: List all files created during session
|
|
184
|
+
- **Format**: Absolute file paths
|
|
185
|
+
- **Example**: `["/src/auth/oauth.py", "/tests/test_auth.py"]`
|
|
186
|
+
- **Note**: Empty array `[]` if no files created
|
|
187
|
+
|
|
188
|
+
#### `files_tracked_in_git` (boolean, required)
|
|
189
|
+
- **Purpose**: Confirm all trackable files are committed
|
|
190
|
+
- **Format**: `true` if all files tracked, `false` if untracked files remain
|
|
191
|
+
- **Rule**: Must be `true` before ending session (unless files in .gitignore or /tmp/)
|
|
192
|
+
|
|
193
|
+
#### `commits_made` (array of strings, required)
|
|
194
|
+
- **Purpose**: Record git commits made for file tracking
|
|
195
|
+
- **Format**: `"commit_hash: commit_message"`
|
|
196
|
+
- **Example**: `["a1b2c3d: feat: add OAuth2 authentication with JWT tokens"]`
|
|
197
|
+
- **Note**: Empty array `[]` if no commits needed
|
|
198
|
+
|
|
199
|
+
#### `untracked_files_remaining` (array of strings, required)
|
|
200
|
+
- **Purpose**: List any untracked files that should be tracked
|
|
201
|
+
- **Format**: Absolute file paths
|
|
202
|
+
- **Example**: `[]` (should always be empty before session ends)
|
|
203
|
+
- **Violation**: Non-empty array = file tracking violation
|
|
204
|
+
|
|
205
|
+
### `assertions_made` (object, required)
|
|
206
|
+
Container for all claims made and their evidence sources.
|
|
207
|
+
|
|
208
|
+
- **Purpose**: Map every assertion to its verification source
|
|
209
|
+
- **Format**: Key-value pairs where key is the claim, value is the evidence source
|
|
210
|
+
- **Example**:
|
|
211
|
+
```json
|
|
212
|
+
{
|
|
213
|
+
"Authentication works": "QA verified with curl - HTTP 200 response",
|
|
214
|
+
"Login flow complete": "web-qa Playwright test passed - screenshot captured",
|
|
215
|
+
"Database migration successful": "Engineer confirmed via alembic upgrade logs"
|
|
216
|
+
}
|
|
217
|
+
```
|
|
218
|
+
- **Rule**: Every claim PM makes MUST appear here with evidence
|
|
219
|
+
|
|
220
|
+
### `blockers` (array of strings, required)
|
|
221
|
+
- **Purpose**: Track any issues preventing completion
|
|
222
|
+
- **Format**: Description of blocker and its impact
|
|
223
|
+
- **Example**: `["Database connection timeout - requires ops investigation"]`
|
|
224
|
+
- **Note**: Empty array `[]` if no blockers
|
|
225
|
+
|
|
226
|
+
### `next_steps` (array of strings, required)
|
|
227
|
+
- **Purpose**: Define clear actions for continuation
|
|
228
|
+
- **Format**: Actionable steps
|
|
229
|
+
- **Example**: `["Have Security review OAuth implementation", "Update API documentation with new endpoints"]`
|
|
230
|
+
- **Note**: Empty array `[]` if work is fully complete
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## Example Responses
|
|
235
|
+
|
|
236
|
+
### Example 1: Minimal Response (Simple Task)
|
|
237
|
+
|
|
238
|
+
```json
|
|
239
|
+
{
|
|
240
|
+
"session_summary": {
|
|
241
|
+
"user_request": "Add a health check endpoint to the API",
|
|
242
|
+
"approach": "Engineer Implementation → QA Verification",
|
|
243
|
+
"delegation_summary": {
|
|
244
|
+
"tasks_delegated": [
|
|
245
|
+
"Engineer: Add /health endpoint returning 200 OK"
|
|
246
|
+
],
|
|
247
|
+
"violations_detected": 0,
|
|
248
|
+
"evidence_collected": true
|
|
249
|
+
},
|
|
250
|
+
"implementation": {
|
|
251
|
+
"delegated_to": "python-engineer",
|
|
252
|
+
"status": "completed",
|
|
253
|
+
"key_changes": [
|
|
254
|
+
"Added /health endpoint to routes.py",
|
|
255
|
+
"Returns JSON with status and timestamp"
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"verification_results": {
|
|
259
|
+
"qa_tests_run": true,
|
|
260
|
+
"tests_passed": "1/1",
|
|
261
|
+
"qa_agent_used": "web-qa",
|
|
262
|
+
"evidence_type": "fetch_response",
|
|
263
|
+
"verification_evidence": "GET /health: HTTP 200 OK, Response: {status: healthy, timestamp: 2025-10-21T10:30:00Z}"
|
|
264
|
+
},
|
|
265
|
+
"file_tracking": {
|
|
266
|
+
"new_files_created": [
|
|
267
|
+
"/src/api/routes.py"
|
|
268
|
+
],
|
|
269
|
+
"files_tracked_in_git": true,
|
|
270
|
+
"commits_made": [
|
|
271
|
+
"e4f5g6h: feat: add health check endpoint"
|
|
272
|
+
],
|
|
273
|
+
"untracked_files_remaining": []
|
|
274
|
+
},
|
|
275
|
+
"assertions_made": {
|
|
276
|
+
"Health endpoint works": "web-qa verified with fetch - HTTP 200 response"
|
|
277
|
+
},
|
|
278
|
+
"blockers": [],
|
|
279
|
+
"next_steps": []
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### Example 2: Standard Response (Feature Implementation)
|
|
285
|
+
|
|
286
|
+
```json
|
|
287
|
+
{
|
|
288
|
+
"session_summary": {
|
|
289
|
+
"user_request": "Implement user authentication with JWT tokens",
|
|
290
|
+
"approach": "Research → Code Analysis → Engineer Implementation → local-ops-agent Deployment → QA Verification → Documentation",
|
|
291
|
+
"delegation_summary": {
|
|
292
|
+
"tasks_delegated": [
|
|
293
|
+
"Research: Analyze authentication requirements and JWT best practices",
|
|
294
|
+
"Code Analyzer: Review existing auth patterns in codebase",
|
|
295
|
+
"Engineer: Implement JWT authentication middleware",
|
|
296
|
+
"local-ops-agent: Deploy to localhost:3000 with PM2",
|
|
297
|
+
"web-qa: Verify login and protected endpoints",
|
|
298
|
+
"Documentation: Update API docs with auth requirements"
|
|
299
|
+
],
|
|
300
|
+
"violations_detected": 0,
|
|
301
|
+
"evidence_collected": true
|
|
302
|
+
},
|
|
303
|
+
"implementation": {
|
|
304
|
+
"delegated_to": "python-engineer",
|
|
305
|
+
"status": "completed",
|
|
306
|
+
"key_changes": [
|
|
307
|
+
"Added JWT token generation and validation",
|
|
308
|
+
"Implemented auth middleware for protected routes",
|
|
309
|
+
"Updated user model with password hashing",
|
|
310
|
+
"Added login and refresh token endpoints"
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
"verification_results": {
|
|
314
|
+
"qa_tests_run": true,
|
|
315
|
+
"tests_passed": "12/12",
|
|
316
|
+
"qa_agent_used": "web-qa",
|
|
317
|
+
"evidence_type": "fetch_response",
|
|
318
|
+
"verification_evidence": "POST /login: 200 OK with JWT token, GET /protected: 401 without token, GET /protected: 200 with valid token"
|
|
319
|
+
},
|
|
320
|
+
"file_tracking": {
|
|
321
|
+
"new_files_created": [
|
|
322
|
+
"/src/auth/jwt_handler.py",
|
|
323
|
+
"/src/middleware/auth_middleware.py",
|
|
324
|
+
"/tests/test_auth.py",
|
|
325
|
+
"/docs/api/authentication.md"
|
|
326
|
+
],
|
|
327
|
+
"files_tracked_in_git": true,
|
|
328
|
+
"commits_made": [
|
|
329
|
+
"a1b2c3d: feat: add JWT authentication system with middleware",
|
|
330
|
+
"e4f5g6h: docs: add authentication documentation"
|
|
331
|
+
],
|
|
332
|
+
"untracked_files_remaining": []
|
|
333
|
+
},
|
|
334
|
+
"assertions_made": {
|
|
335
|
+
"JWT authentication works": "web-qa verified login flow - received valid token",
|
|
336
|
+
"Protected routes secure": "web-qa confirmed 401 without token, 200 with token",
|
|
337
|
+
"Documentation complete": "Documentation agent created /docs/api/authentication.md"
|
|
338
|
+
},
|
|
339
|
+
"blockers": [],
|
|
340
|
+
"next_steps": [
|
|
341
|
+
"Have Security review JWT implementation and token expiration settings",
|
|
342
|
+
"Consider adding refresh token rotation for enhanced security"
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
### Example 3: Comprehensive Response (Complex Multi-Phase Project)
|
|
349
|
+
|
|
350
|
+
```json
|
|
351
|
+
{
|
|
352
|
+
"session_summary": {
|
|
353
|
+
"user_request": "Build a complete e-commerce checkout flow with payment integration",
|
|
354
|
+
"approach": "Research → Code Analysis → react-engineer (UI) + python-engineer (API) → vercel-ops-agent Deployment → web-qa + api-qa Verification → Security Review → Documentation",
|
|
355
|
+
"delegation_summary": {
|
|
356
|
+
"tasks_delegated": [
|
|
357
|
+
"Research: Analyze e-commerce checkout best practices and Stripe integration",
|
|
358
|
+
"Code Analyzer: Review existing cart and payment infrastructure",
|
|
359
|
+
"react-engineer: Build checkout UI components and flow",
|
|
360
|
+
"python-engineer: Implement Stripe payment API integration",
|
|
361
|
+
"vercel-ops-agent: Deploy frontend to Vercel",
|
|
362
|
+
"railway-ops-agent: Deploy backend API to Railway",
|
|
363
|
+
"api-qa: Verify payment API endpoints",
|
|
364
|
+
"web-qa: Test checkout flow with Playwright",
|
|
365
|
+
"Security: Review payment handling and PCI compliance",
|
|
366
|
+
"Documentation: Create checkout flow documentation"
|
|
367
|
+
],
|
|
368
|
+
"violations_detected": 0,
|
|
369
|
+
"evidence_collected": true
|
|
370
|
+
},
|
|
371
|
+
"implementation": {
|
|
372
|
+
"delegated_to": "react-engineer, python-engineer",
|
|
373
|
+
"status": "completed",
|
|
374
|
+
"key_changes": [
|
|
375
|
+
"Built multi-step checkout UI with React",
|
|
376
|
+
"Integrated Stripe Payment Intents API",
|
|
377
|
+
"Added order confirmation and receipt generation",
|
|
378
|
+
"Implemented webhook handlers for payment events",
|
|
379
|
+
"Added comprehensive error handling and validation"
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
"verification_results": {
|
|
383
|
+
"qa_tests_run": true,
|
|
384
|
+
"tests_passed": "28/30",
|
|
385
|
+
"qa_agent_used": "web-qa, api-qa",
|
|
386
|
+
"evidence_type": "playwright_screenshot, fetch_response",
|
|
387
|
+
"verification_evidence": "web-qa: Completed full checkout flow with test card, payment succeeded, order confirmed. api-qa: All payment endpoints returning correct status codes, webhook validation working. 2 edge case tests pending: international cards and 3DS authentication."
|
|
388
|
+
},
|
|
389
|
+
"file_tracking": {
|
|
390
|
+
"new_files_created": [
|
|
391
|
+
"/frontend/src/components/Checkout/CheckoutFlow.tsx",
|
|
392
|
+
"/frontend/src/components/Checkout/PaymentForm.tsx",
|
|
393
|
+
"/backend/src/api/payment_routes.py",
|
|
394
|
+
"/backend/src/services/stripe_service.py",
|
|
395
|
+
"/backend/src/webhooks/stripe_webhooks.py",
|
|
396
|
+
"/tests/frontend/checkout.spec.ts",
|
|
397
|
+
"/tests/backend/test_payments.py",
|
|
398
|
+
"/docs/checkout-flow.md"
|
|
399
|
+
],
|
|
400
|
+
"files_tracked_in_git": true,
|
|
401
|
+
"commits_made": [
|
|
402
|
+
"a1b2c3d: feat: implement checkout UI components with multi-step flow",
|
|
403
|
+
"e4f5g6h: feat: add Stripe payment integration and webhook handlers",
|
|
404
|
+
"i7j8k9l: test: add comprehensive payment flow tests",
|
|
405
|
+
"m1n2o3p: docs: document checkout flow and payment integration"
|
|
406
|
+
],
|
|
407
|
+
"untracked_files_remaining": []
|
|
408
|
+
},
|
|
409
|
+
"assertions_made": {
|
|
410
|
+
"Checkout flow works": "web-qa verified complete flow with Playwright - screenshot captured",
|
|
411
|
+
"Payment processing functional": "api-qa tested with Stripe test cards - successful payment confirmed",
|
|
412
|
+
"Webhooks operational": "api-qa verified webhook signature validation and event processing",
|
|
413
|
+
"UI deployed to Vercel": "vercel-ops-agent confirmed deployment - https://myapp.vercel.app/checkout accessible",
|
|
414
|
+
"API deployed to Railway": "railway-ops-agent verified deployment - https://api.railway.app/health returning 200",
|
|
415
|
+
"Security reviewed": "Security agent confirmed PCI-compliant implementation, no sensitive data stored"
|
|
416
|
+
},
|
|
417
|
+
"blockers": [],
|
|
418
|
+
"next_steps": [
|
|
419
|
+
"Have QA test international card support and 3D Secure authentication (2 pending tests)",
|
|
420
|
+
"Consider adding Apple Pay and Google Pay as additional payment methods",
|
|
421
|
+
"Schedule load testing for payment endpoints before production launch"
|
|
422
|
+
]
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
---
|
|
428
|
+
|
|
429
|
+
## Validation Checklist
|
|
430
|
+
|
|
431
|
+
Before submitting a PM response, verify ALL of these requirements:
|
|
432
|
+
|
|
433
|
+
### Required Fields
|
|
434
|
+
- [ ] `session_summary` object present
|
|
435
|
+
- [ ] `user_request` captured accurately
|
|
436
|
+
- [ ] `approach` shows delegation workflow
|
|
437
|
+
- [ ] `delegation_summary` with all delegated tasks
|
|
438
|
+
- [ ] `implementation` details provided
|
|
439
|
+
- [ ] `verification_results` with actual evidence
|
|
440
|
+
- [ ] `file_tracking` completed with git commits
|
|
441
|
+
- [ ] `assertions_made` maps all claims to evidence
|
|
442
|
+
- [ ] `blockers` listed (or empty array)
|
|
443
|
+
- [ ] `next_steps` defined (or empty array)
|
|
444
|
+
|
|
445
|
+
### Data Type Validation
|
|
446
|
+
- [ ] `violations_detected` is a number
|
|
447
|
+
- [ ] `evidence_collected` is boolean
|
|
448
|
+
- [ ] `qa_tests_run` is boolean
|
|
449
|
+
- [ ] `files_tracked_in_git` is boolean
|
|
450
|
+
- [ ] All arrays are properly formatted
|
|
451
|
+
- [ ] All strings are non-empty where required
|
|
452
|
+
|
|
453
|
+
### Content Quality
|
|
454
|
+
- [ ] `tasks_delegated` contains actual agent names and specific tasks
|
|
455
|
+
- [ ] `verification_evidence` has ACTUAL output, not claims
|
|
456
|
+
- [ ] `new_files_created` uses absolute paths
|
|
457
|
+
- [ ] `commits_made` includes actual commit hashes and messages
|
|
458
|
+
- [ ] `untracked_files_remaining` is empty (before session ends)
|
|
459
|
+
- [ ] Every assertion has corresponding evidence source
|
|
460
|
+
|
|
461
|
+
### Delegation Compliance
|
|
462
|
+
- [ ] `violations_detected` is 0 (for perfect session)
|
|
463
|
+
- [ ] No "Let me..." phrases in delegation summary
|
|
464
|
+
- [ ] All work delegated to appropriate agents
|
|
465
|
+
- [ ] Verification performed (by PM or delegated)
|
|
466
|
+
|
|
467
|
+
---
|
|
468
|
+
|
|
469
|
+
## Common Mistakes to Avoid
|
|
470
|
+
|
|
471
|
+
### ❌ Mistake 1: Vague Verification Evidence
|
|
472
|
+
**WRONG**:
|
|
473
|
+
```
|
|
474
|
+
"verification_evidence": "It works correctly"
|
|
475
|
+
```
|
|
476
|
+
*Problem: No actual evidence provided*
|
|
477
|
+
|
|
478
|
+
✅ **CORRECT**:
|
|
479
|
+
```
|
|
480
|
+
"verification_evidence": "GET /api/users: HTTP 200 OK, returned 15 user records"
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
### ❌ Mistake 2: Unverified Assertions
|
|
484
|
+
**WRONG**:
|
|
485
|
+
```
|
|
486
|
+
"assertions_made": {
|
|
487
|
+
"API deployed": "Should be working"
|
|
488
|
+
}
|
|
489
|
+
```
|
|
490
|
+
*Problem: No verification, just assumption*
|
|
491
|
+
|
|
492
|
+
✅ **CORRECT**:
|
|
493
|
+
```
|
|
494
|
+
"assertions_made": {
|
|
495
|
+
"API deployed": "vercel-ops-agent verified with curl - HTTP 200 response from https://api.vercel.app"
|
|
496
|
+
}
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
### ❌ Mistake 3: Missing File Tracking
|
|
500
|
+
**WRONG**:
|
|
501
|
+
```
|
|
502
|
+
"file_tracking": {
|
|
503
|
+
"new_files_created": [],
|
|
504
|
+
"files_tracked_in_git": false,
|
|
505
|
+
"commits_made": [],
|
|
506
|
+
"untracked_files_remaining": ["/src/new_feature.py"]
|
|
507
|
+
}
|
|
508
|
+
```
|
|
509
|
+
*Problem: Files created but not tracked - VIOLATION!*
|
|
510
|
+
|
|
511
|
+
✅ **CORRECT**:
|
|
512
|
+
```
|
|
513
|
+
"file_tracking": {
|
|
514
|
+
"new_files_created": ["/src/new_feature.py"],
|
|
515
|
+
"files_tracked_in_git": true,
|
|
516
|
+
"commits_made": ["a1b2c3d: feat: add new feature implementation"],
|
|
517
|
+
"untracked_files_remaining": []
|
|
518
|
+
}
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
### ❌ Mistake 4: Generic Task Delegation
|
|
522
|
+
**WRONG**:
|
|
523
|
+
```
|
|
524
|
+
"tasks_delegated": ["Engineer: do the thing"]
|
|
525
|
+
```
|
|
526
|
+
*Problem: Not specific enough*
|
|
527
|
+
|
|
528
|
+
✅ **CORRECT**:
|
|
529
|
+
```
|
|
530
|
+
"tasks_delegated": ["python-engineer: Implement user authentication with JWT tokens and bcrypt password hashing"]
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
### ❌ Mistake 5: Relative File Paths
|
|
534
|
+
**WRONG**:
|
|
535
|
+
```
|
|
536
|
+
"new_files_created": ["src/auth.py"]
|
|
537
|
+
```
|
|
538
|
+
*Problem: Relative path instead of absolute*
|
|
539
|
+
|
|
540
|
+
✅ **CORRECT**:
|
|
541
|
+
```
|
|
542
|
+
"new_files_created": ["/Users/project/src/auth.py"]
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
---
|
|
546
|
+
|
|
547
|
+
## Integration with Other Systems
|
|
548
|
+
|
|
549
|
+
### TodoWrite Integration
|
|
550
|
+
The PM response format works in conjunction with TodoWrite tracking:
|
|
551
|
+
- `tasks_delegated` should match TodoWrite task list
|
|
552
|
+
- `delegation_summary.violations_detected` counts violations logged in TodoWrite
|
|
553
|
+
- Task completion status should align with `implementation.status`
|
|
554
|
+
|
|
555
|
+
### Violation Tracking Integration
|
|
556
|
+
The response format captures violations for accountability:
|
|
557
|
+
- `violations_detected`: Integer count of PM violations
|
|
558
|
+
- Circuit breakers (see [Circuit Breakers](circuit_breakers.md)) detect violations
|
|
559
|
+
- Violations escalate based on count (1 = warning, 2 = critical, 3+ = session compromised)
|
|
560
|
+
|
|
561
|
+
### Git File Tracking Integration
|
|
562
|
+
The `file_tracking` object enforces the [Git File Tracking Protocol](git_file_tracking.md):
|
|
563
|
+
- PM must run `git status` before ending sessions
|
|
564
|
+
- All new files must be tracked (unless in .gitignore or /tmp/)
|
|
565
|
+
- Commits must use Claude MPM branding in commit messages
|
|
566
|
+
- Circuit Breaker #5 detects file tracking violations
|
|
567
|
+
|
|
568
|
+
### Evidence Collection Integration
|
|
569
|
+
The `verification_results` object supports the [Validation Templates](validation_templates.md):
|
|
570
|
+
- `qa_tests_run` enforces mandatory QA requirement
|
|
571
|
+
- `verification_evidence` must contain actual data (see Required Evidence table)
|
|
572
|
+
- `qa_agent_used` tracks which specialized agent performed verification
|
|
573
|
+
- PM cannot claim work complete without evidence
|
|
574
|
+
|
|
575
|
+
---
|
|
576
|
+
|
|
577
|
+
## Notes
|
|
578
|
+
|
|
579
|
+
- This document is extracted from PM_INSTRUCTIONS.md for better organization
|
|
580
|
+
- All PM responses MUST follow this JSON schema
|
|
581
|
+
- Validation occurs at multiple levels: structure, data types, content quality
|
|
582
|
+
- Integration with TodoWrite, violation tracking, and git file tracking is mandatory
|
|
583
|
+
- Updates to response format should be made here and referenced in PM_INSTRUCTIONS.md
|