Commit Graph

23 Commits

Author SHA1 Message Date
Azreen Jamal 8309fc1869 fix: faster verification - 2min timeout, no deep scans 2026-03-06 16:09:03 +08:00
Azreen Jamal 086d9a3026 feat: add pre/post verification to task execution pipeline
- Before executing: verify if work is already done on server
- If already done: skip execution, comment evidence, mark complete
- After executing: run verification again to confirm work was applied
- Verification agent uses Pi with read-only investigation prompt
- Adds verification status (PASSED/COULD NOT CONFIRM) to Asana comments
- Prevents redundant work and catches false completions
2026-03-06 15:57:39 +08:00
Azreen Jamal ccdbf94450 fix: detect Pi API errors in event stream (exit code 0 on failure)
Pi CLI exits with code 0 even when the Anthropic API returns errors
(e.g. insufficient credits). The error is only visible in the JSON
event stream as stopReason:"error" with an errorMessage field.

Now the executor parses message_end/turn_end events for errorMessage
and treats them as failures, preventing false "task completed" reports.
2026-03-06 15:41:02 +08:00
Azreen Jamal bf69c43e2f fix: update task-loop section matching for Bug Intake project
- SECTIONS now uses arrays of candidate names searched in priority order
- Maps Bug Intake sections: New Bugs→TODO, Under Review→IN_PROGRESS, Resolved→DONE
- Added findFirstSection helper for array-based section lookup
2026-03-06 15:38:04 +08:00
Azreen Jamal fad45aae27 chore: add pi-worker paths to gitignore 2026-03-06 15:26:44 +08:00
Azreen Jamal 19420cc01d feat: add pi-worker service - autonomous Asana task executor & project improvement agent
- Asana REST API client for task polling, section management, and commenting
- Pi CLI executor for running tasks with specialist agent teams
- Task loop: polls Asana To Do/Pi Worker sections, executes tasks, reports results
- Improvement loop: rotates through 8 improvement categories (code quality, security, docs, testing, etc)
- Health server on :8787
- File-based mutex locks with stale lock detection
- Docker + docker-compose deployment config
- deploy.sh for one-command deployment to cr-server-new via SSH/Incus
2026-03-06 15:26:13 +08:00
Azreen Jamal 6e074fd512 feat: add pi-worker service for autonomous Asana task execution and project improvements 2026-03-06 15:14:43 +08:00
Azreen Jamal 28465884fc telegram-bot: fix streaming JSON, session bloat, prevent local command execution
- Fix progress messages showing [object Object] - parse tool_execution_start/end events
- Auto-clear sessions >200KB to prevent context bloat timeouts
- Restrict bash tool to SSH and curl only - prevent recursive Pi spawning
- Proper error messages for timeouts
2026-03-06 04:20:02 +08:00
Azreen Jamal b5d8665ac0 telegram-bot: rewrite to use Pi CLI with streaming JSON output
- Replaced direct Anthropic API with Pi CLI (uses platform auth, no API key needed)
- Model: claude-sonnet-4-6
- Streaming JSON mode with live progress updates in Telegram
- Per-user session files via Pi's --session/--continue
- Auto-recovery from corrupted sessions
- 5 min timeout, not-lazy system prompt
2026-03-06 02:58:58 +08:00
Azreen Jamal bcce1d4549 update extensions, telegram bot, and add giveaway module 2026-03-05 18:11:32 +08:00
Azreen Jamal a7413075c3 telegram bot: fix env loading, remove markdown, clear stale updates 2026-03-03 04:19:37 +08:00
Azreen Jamal dd2ce7e81f telegram bot: launchd install/uninstall scripts for macOS 2026-03-03 04:16:27 +08:00
Azreen Jamal 5f8f7a1591 telegram bot: hardened auth, rate limiting, dangerous cmd blocking, private-only 2026-03-03 04:14:16 +08:00
Azreen Jamal c6c1e06048 telegram bot: two-way Claude chat + SSH command runner 2026-03-03 04:10:57 +08:00
Azreen Jamal 1389c848b2 infra.md: full topology map, .env: all server credentials 2026-03-03 03:11:11 +08:00
Azreen Jamal dfd64112dd infra.md references .env vars only, no hardcoded values 2026-03-03 03:09:13 +08:00
Azreen Jamal 201aa94056 move infra.md to .pi/ 2026-03-03 03:07:09 +08:00
Azreen Jamal a3c6d09350 remove infra.md.example, infra.md is the source of truth 2026-03-03 03:06:13 +08:00
Azreen Jamal 1ad3033cc1 infra.md: reference only, secrets stay in .env 2026-03-03 03:05:06 +08:00
Azreen Jamal 5e0d80daf9 add infra credentials setup (gitignored secrets, shared template) 2026-03-03 03:01:54 +08:00
Azreen Jamal f832b913d5 feat: add improved pi agent with observatory, dashboard, and pledge-now-pay-later 2026-03-01 23:41:24 +08:00
IndyDevDan ae242436c9 pi vs open code 2026-02-26 15:55:17 -06:00
IndyDevDan 32dfe122cb 🚀 2026-02-22 20:19:33 -06:00