feat: add PHP development stack, atomic tasks, modular code rules, agent monitoring, fix target project detection

7 evolutionary tasks implemented:

1. PHP web development: php-developer agent + 6 skills (Laravel, Symfony, WordPress, security, testing, modular architecture) + 2 pipeline commands (/laravel, /wordpress)

2. Atomic task decomposition: 1 action = 1 task rule, task sizing guide, decomposition protocol for orchestrator, token budgets per complexity

3. Modular code rules: max 100 lines/file, max 30 lines/function, service/repository patterns, cross-module communication via events only

4. Gitea-centric workflow: mandatory issue creation before work, research with links, progress checkboxes, screenshots on test, git history as knowledge base

5. Fix: target project auto-detection — removed all hardcoded UniqueSoft/APAW from API calls, added get_target_repo() via git remote, GITEA_TARGET_REPO env override

6. Agent execution monitoring: agent-executions.jsonl logging, agent-stats.ts statistics script, required fields per invocation, Gitea comment includes duration/tokens

7. Token optimization: 1 action = 1 task principle, token budgets by task type, routing matrix, no scope creep, skip unnecessary pipeline steps
This commit is contained in:
¨NW¨
2026-04-18 23:43:04 +01:00
parent 28a3b648cc
commit b46a1a20a8
28 changed files with 3760 additions and 274 deletions

View File

@@ -29,7 +29,10 @@
"evolution:stop": "docker stop apaw-evolution-dashboard && docker rm apaw-evolution-dashboard",
"evolution:start": "bash agent-evolution/docker-run.sh run",
"evolution:dev": "docker-compose -f docker-compose.evolution.yml up -d",
"evolution:logs": "docker logs -f apaw-evolution-dashboard"
"evolution:logs": "docker logs -f apaw-evolution-dashboard",
"agent:stats": "bun run scripts/agent-stats.ts",
"agent:stats:week": "bun run scripts/agent-stats.ts --last 7",
"agent:stats:project": "bun run scripts/agent-stats.ts --project"
},
"dependencies": {
"zod": "^3.24.1"