Commit Graph

15 Commits

Author SHA1 Message Date
NW
af08e74f72 feat(gns-2): stdio MCP transport with hybrid fallback 2026-05-09 00:28:57 +01:00
NW
f5966db155 feat(gns2): integrate HybridGiteaClient into PollingSupervisor
- PollingSupervisor now uses HybridGiteaClient (MCP primary, REST fallback)
- Added mcpUrl to PipelineConfig
- Supervisor calls initialize() to detect MCP vs REST mode automatically

Refs: Milestone #67, Issue #107
2026-05-08 22:35:21 +01:00
NW
3cc6ee2ffe feat(gns2): Phase 8 MCP Docker containers for Gitea direct integration
- docker/mcp-gitea/docker-compose.yml — MCP server container (Sqcoows/forgejo-mcp)
- .kilo/skills/mcp-gitea-connection/SKILL.md — agent migration guide (103 tools)
- src/kilocode/agent-manager/mcp-gitea-client.ts — MCP native client with fallback
- Hybrid mode: MCP primary, REST API fallback if container unavailable
- All 29 Tier 0/1 agents mass-updated with GNS-2 protocol (checkpoint read, event footer)
- Security: no bash for Gitea ops, MCP handles credentials internally

Refs: Milestone #67, Issue #107
2026-05-08 22:16:52 +01:00
NW
47b027a02f feat(gns2): Gitea-Nervous-System v2.0 - distributed agent state machine
- Add GNS-2 label taxonomy (66 labels) with semantic routing
- Tier 2 agents (capability-analyst, agent-architect, evaluator) enabled for self-cascade
- GNS agent protocol: checkpoint v2 in issue body, machine-readable event footers
- GiteaClient extended: checkpoint CRUD, event parsing, assignee/lock control, triggered issue polling
- PipelineRunner rewritten as PollingSupervisor: reactive instead of active dispatch
- Security: circuit breakers (is_locked), budget governance, depth limits
- Scripts: init-gns-labels.py, validate-gns-agents.py
- Milestone #67 + 7 phase issues (#99-#105) tracking evolution

Refs: Milestone #67, Issues #99-#105
2026-05-08 21:25:38 +01:00
NW
f01e2064fb feat(evolution): Kilo Code release sync & APAW system hardening (v2026-05-07)
Security & Permissions:
- All 30 agents: task[*]=deny, task[subagent]=deny (cascade prevention)
- orchestrator & release-manager: bash=ask (hardening)
- New .kilo/rules/subagent-security.md with audit rules
- Updated .kilo/rules/global.md with Security & Permissions section
- Updated .kilo/agents/orchestrator.md with Security Enforcement block

Session Management:
- New .kilo/rules/session-persistence.md (checkpoint format, worktree isolation)
- Updated .kilo/rules/branch-strategy.md (worktree per agent)
- pipeline-runner.ts: Checkpoint interface + save/load/resume methods

Plan Persistence:
- Updated .kilo/rules/lead-developer.md (plan handover section)

Per-Agent Reasoning:
- capability-index.yaml: reasoning_effort for all 30 agents (xhigh/high/medium/low)

MCP Cleanup:
- New .kilo/skills/docker-security/SKILL.md (--rm, orphaned process cleanup)

Config Validation:
- Updated .kilo/rules/docker.md (startup checks, commit scoping, location awareness)

Docs:
- README.md: v2026-05-07 evolution badges
- .kilo/EVOLUTION_LOG.md: Entry #6 with full metrics
- .gitignore: ignore dist/ + bun.lock

Gitea: Milestone #66, Issues #91-#98
Architect: 9/9 sections fresh (express project type)
2026-05-08 18:54:08 +01:00
¨NW¨
6b71ea2b57 feat: add .architect/ project mapping system with architect-indexer agent and Docker containerization
- Add .architect/ directory structure (10 template files) as project brain for agent orientation
- Add architect-indexer agent that scans codebase and generates structured architecture docs
- Add Docker containerization: Dockerfile.architect-indexer, docker-compose.architect.yml
- Add TypeScript project-mapper module with staleness detection and context injection
- Add /index-project command, architect-first-contact rule, project-mapping skill
- Integrate orchestrator first-contact check: triggers indexing before any task delegation
- Add npm arch:* scripts for Docker-based indexing workflow
- Register agent in capability-index.yaml and AGENTS.md
2026-04-22 20:01:38 +01:00
swp
a1a15473a0 feat: add mandatory Gitea commenting to all agents
- Add gitea-commenting skill with comment templates
- Update orchestrator with mandatory commenting requirements
- Add Gitea Commenting section to all 17 agent files
- Create email validation module (validateEmail function)
- Add efficiency_score.json for pipeline logging
- Create test-error-recovery.js for error recovery testing

Refs: Milestone #43 - System Consistency Testing
All 6 test issues closed successfully
2026-04-04 03:18:28 +01:00
swp
5be477b7bd test: add router tests and fix routing logic for Issue #5
- Add comprehensive router tests (26 tests)
- Fix label/status routing priority
- Add input validation for security
- Optimize routing with Set-based lookups
- Add markdown sanitization for Gitea output
2026-04-04 02:39:12 +01:00
swp
c3eb4f7372 test: add validation functions for autonomous pipeline testing
Created test files to verify full pipeline flow:
- add.ts - Basic math functions (add, subtract, multiply, divide)
- add.test.ts - Comprehensive test suite with Bun test framework

These files will be used to test:
- @sdet-engineer: Test writing (TDD)
- @lead-developer: Implementation
- @code-skeptic: Code review
- @security-auditor: Security check
- E2E pipeline flow
2026-04-04 02:02:14 +01:00
swp
e58a5b6380 feat: add markdown-validator agent and scoped-labels skill
- Add markdown-validator agent for validating Gitea issue descriptions
- Add scoped-labels skill for managing exclusive labels (status::, priority::, type::)
- Add init-scoped-labels.sh script to create standard label sets
- Add GiteaClient methods: createLabel, updateLabel, setScopedLabel, setScopedStatus, setScopedPriority
- Support exclusive labels (scoped labels) in Gitea API 1.21+

Created scoped labels:
- status::new, status::planned, status::in-progress, status::review, status::testing, status::done, status::blocked, status::cancelled
- priority::critical, priority::high, priority::medium, priority::low
- type::bug, type::feature, type::enhancement, type::documentation, type::refactor, type::test, type::chore
- size::xs, size::s, size::m, size::l, size::xl

Scoped labels are mutually exclusive within their scope - applying status::in-progress automatically removes status::new
2026-04-04 01:42:12 +01:00
swp
2519079e6e docs: add Gitea integration documentation and createToken method
- Add GiteaClient.createToken() static method for Basic Auth token creation
- Add AccessToken interface with all Gitea 1.21+ fields
- Create docs/GITEA_INTEGRATION.md with complete usage guide
- Document API scopes (all, read:*, write:*)
- Add examples for agents integration

API scopes per Gitea 1.21+:
- 'all' for full access
- 'read:issue', 'write:issue' for issues
- 'read:repository', 'write:repository' for repos
- 'read:milestone', 'write:milestone' for milestones
2026-04-04 01:30:35 +01:00
swp
2344e50ad1 feat: add milestone support and test scripts for Gitea API
- Add Milestone interface with all fields per Gitea API 1.21+
- Add CreateMilestoneOptions and UpdateMilestoneOptions types
- Add getMilestones(), getMilestone(), createMilestone(), updateMilestone(), deleteMilestone() methods
- Add setIssueMilestone() to link issues to milestones
- Add TypeScript test script (test-gitea-api.ts) for programmatic testing
- Add Bash test script (test-gitea.sh) for manual API testing

Test scripts create:
- 1 milestone (Pipeline Integration Test)
- 3 issues with checklists
- Comments on issues with progress updates

Usage: GITEA_TOKEN=token ./scripts/test-gitea.sh
2026-04-04 01:21:22 +01:00
swp
35f94e0b8f fix: align Gitea client with API 1.21+ specification
- Update Label interface with id, exclusive, is_archived fields
- Add IssueLabelsOption type for proper label handling
- Fix addLabels/removeLabel to support both IDs and names
- Add getIssueLabels, replaceLabels, clearLabels methods
- Add getRepoLabels, getLabel, createLabel for label management
- Add updateIssue for partial issue updates
- Add deleteComment for comment removal
- Add getIssueTimeline for issue events
- setStatus now properly removes old status labels before adding new
- All endpoints now match Gitea API 1.21+ specification
2026-04-04 01:14:49 +01:00
swp
35bbdcb08f feat: integrate agent-manager module with KiloCode workflows
- Move agent-manager from packages/opencode/ to src/kilocode/
- Add Gitea client for pipeline logging
- Add pipeline-runner for workflow orchestration
- Create slash commands: /pipeline, /status, /evaluate
- Update AGENTS.md with workflow documentation
- Update README.md with KiloCode integration details
- Add package.json and tsconfig.json for TypeScript compilation
- Remove duplicate files from packages/opencode/

This enables:
- /pipeline <issue> - run full agent pipeline with Gitea logging
- Direct agent invocation via @mention
- Performance tracking and prompt optimization
2026-04-04 01:11:06 +01:00
swp
4a69c5323b feat: update agent models to current configuration
- Update README.md with correct model assignments for all agents
- Sync AGENTS.md and .kilo/ files with new model IDs
- Change History Miner: Gemini-3-Flash → GPT-OSS 20B
- Change System Analyst: GPT-OSS 120B → Qwen3.6-Plus (Free)
- Change Product Owner: Qwen3.5 122B → Qwen3.6-Plus (Free)
- Change Lead Developer: DeepSeek-v3.2 → Qwen3-Coder 480B
- Change The Fixer: MiniMax-m2.7 → MiniMax-m2.5
- Change SDET Engineer: Qwen3-Coder-Next → Qwen3-Coder 480B
- Change Code Skeptic: GPT-OSS 120B → MiniMax-m2.5
- Change Security Auditor: GLM-4.7 → Kimi-k2.5
- Change Release Manager: Devstral-2 123B → Qwen3-Coder 480B
- Change Evaluator: GPT-o3 → GPT-OSS 120B
- Change Prompt Optimizer: Claude 4.5 → Qwen3.6-Plus (Free)
- Add AgentArchitect agent configuration
- Update commands: plan, ask, debug, code models
- Add permissions configuration to commands
2026-04-04 00:50:22 +01:00