ワンクリックで
domain-alpha-discovery-ops
Alpha discovery local testing and production monitoring
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Alpha discovery local testing and production monitoring
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
AI Agent Community API interaction. Post errors, questions, solutions and interact with other agents.
Confluence REST API for pages, spaces, and content. Uses API token for headless/CI. Activate for Confluence operations.
GitHub REST API for issues, PRs, repos. Uses PAT for headless/CI. Activate for GitHub operations.
Google Calendar API for events and schedules. Uses OAuth2 refresh token for headless/CI. Activate for calendar operations.
Jira REST API for issues, projects, sprints. Uses API token for headless/CI. Activate for Jira operations.
Notion REST API for pages, databases, blocks. Uses internal integration token for headless/CI. Activate for Notion operations.
| name | domain-alpha-discovery-ops |
| description | Alpha discovery local testing and production monitoring |
| allowed-tools | Bash, Read, Grep, Glob |
| user-invocable | false |
| quality_grade | B |
| quality_checked | "2026-03-19T00:00:00.000Z" |
How to test alpha discovery locally and monitor sessions in production.
modules/arkraft/arkraft-agent-alphav2
cd modules/arkraft/arkraft-agent-alphav2
# Single step
uv run python test_run.py design
# All 6 steps sequentially
uv run python test_run.py all
workspace/test-run/topic.json with example hypothesis if missingpython main.py --session-id SID --topic-id TID design # Phase 1
python main.py --session-id SID --topic-id TID prep # Phase 2
python main.py --session-id SID --topic-id TID explore # Phase 3
python main.py --session-id SID --topic-id TID review # Phase 4
python main.py --session-id SID --topic-id TID implement # Phase 5
python main.py --session-id SID --topic-id TID evaluate # Phase 6
# Override max turns
python main.py --session-id SID --topic-id TID explore -t 30
| Step | Default |
|---|---|
| design | 15 |
| prep | 40 |
| explore | 50 |
| review | 15 |
| implement | 40 |
| evaluate | 60 |
# Interactive shell with live code reload (mounts ./src:/app/src)
docker-compose run agent-dev
# Inside container
python main.py --session-id test --topic-id my-topic design
Requires: external arkraft Docker network.
| Variable | Local Default | Purpose |
|---|---|---|
CLAUDE_OAUTH_TOKEN_{1,2,3} | — | OAuth tokens (rotation) |
AVAILABLE_TOKENS | 1,2,3 | Token indices |
S3_BUCKET | arkraft-production | Output bucket |
AWS_REGION | ap-northeast-2 | AWS region |
REDIS_URL | redis://localhost:6379 | Event pub/sub |
RABBITMQ_URL | amqp://arkraft:arkraft@rabbitmq:5672/arkraft | Callback queue |
ARKRAFT_TEAM_ID | — | Tenant ID |
ARKRAFT_API_URL | — | API base URL |
uv run ruff check src/
uv run ruff format src/
Agent → RabbitMQ callback → Celery task → DB update + Redis Pub/Sub → SSE → Web UI
Agent → S3 workspace sync (chat_logs, artifacts)
Full route reference: ROUTES.md
Key SSE endpoints:
GET /alpha/discovery/{session_id}/stream — session-levelGET /alpha/discovery/{session_id}/{topic_id}/stream — topic-levelGET /api/alpha/sessions/{id}/stream — web BFF proxy| Channel | Events |
|---|---|
alpha:discovery:{session_id} | topic_added, update_status, insight_started/failed |
alpha:topic:{topic_id} | alpha.registered, alpha.evaluated, workspace.sync |
Agent → RabbitMQ (agent.callback / callback.alpha) → Celery (handle_alpha_callback) → DB + Redis Pub/Sub.
Fallback: S3 sentinels at callback-sentinels/alpha/{session_id}/{topic_id}/.
created → running → completed / failed (terminal, cannot overwrite)
src/usage_tracker.py — call count, duration, errorsnow.hour // 2 % len(tokens)).claude-id + _cli.jsonl per step (cleared at step start)test_run.py bypasses S3/callback — artifacts stay in local workspace/test-run/modules/arkraft/), not the repo root.claude-id is per-step only — cannot resume across different steps