Skip to content

Commit d072033

Browse files
author
bgagent
committed
chore: true reletive path
1 parent 8e3ed6a commit d072033

6 files changed

Lines changed: 44 additions & 16 deletions

File tree

abca-plugin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ python3 -c "import json; json.load(open('abca-plugin/hooks/hooks.json')); print(
9898
MISE_EXPERIMENTAL=1 mise tasks --all 2>/dev/null | grep -E '(build|install|compile|test|deploy|destroy|diff|synth|bootstrap)'
9999

100100
# Layer 3: Content — CLI flags match
101-
cd cli && node lib/bin/bgagent.js submit --help && node lib/bin/bgagent.js list --help
101+
node cli/lib/bin/bgagent.js submit --help && node cli/lib/bin/bgagent.js list --help
102102
```
103103

104104
## Development

abca-plugin/skills/abca-status/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ Run these in parallel where possible:
2222

2323
2. **Running tasks:**
2424
```bash
25-
cd cli && node lib/bin/bgagent.js list --status RUNNING,SUBMITTED,HYDRATING --output json 2>/dev/null || echo "CLI not configured"
25+
node cli/lib/bin/bgagent.js list --status RUNNING,SUBMITTED,HYDRATING --output json 2>/dev/null || echo "CLI not configured"
2626
```
2727

2828
3. **Recent completed tasks:**
2929
```bash
30-
cd cli && node lib/bin/bgagent.js list --limit 5 --output json 2>/dev/null || echo "CLI not configured"
30+
node cli/lib/bin/bgagent.js list --limit 5 --output json 2>/dev/null || echo "CLI not configured"
3131
```
3232

3333
4. **Local build health:**

abca-plugin/skills/abca-submit/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Parse the description to infer the type:
2727
## Submit
2828

2929
```bash
30-
cd cli && node lib/bin/bgagent.js submit \
30+
node cli/lib/bin/bgagent.js submit \
3131
--repo $REPO \
3232
$FLAGS \
3333
--max-turns 100 \

abca-plugin/skills/setup/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ Guide through:
8484
2. Test the API: `curl -s -H "Authorization: $TOKEN" $API_URL/tasks`
8585
3. Configure the CLI:
8686
```bash
87-
cd cli && mise run build
88-
node lib/bin/bgagent.js configure \
87+
mise //cli:build
88+
node cli/lib/bin/bgagent.js configure \
8989
--api-url $API_URL --region $REGION \
9090
--user-pool-id $USER_POOL_ID --client-id $APP_CLIENT_ID
91-
node lib/bin/bgagent.js login --username user@example.com
91+
node cli/lib/bin/bgagent.js login --username user@example.com
9292
```
9393

9494
## Completion

abca-plugin/skills/submit-task/SKILL.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ Recommend appropriate limits based on task complexity:
7777

7878
**Via CLI (preferred):**
7979
```bash
80-
# From the cli/ directory after building
81-
node lib/bin/bgagent.js submit \
80+
# From the repo root
81+
node cli/lib/bin/bgagent.js submit \
8282
--repo owner/repo \
8383
--issue 42 \
8484
--max-turns 100 \
@@ -118,9 +118,9 @@ curl -X POST "$API_URL/tasks" \
118118

119119
After submission, show how to check status:
120120
```bash
121-
node lib/bin/bgagent.js status <TASK_ID>
122-
node lib/bin/bgagent.js events <TASK_ID>
123-
node lib/bin/bgagent.js list --status RUNNING
121+
node cli/lib/bin/bgagent.js status <TASK_ID>
122+
node cli/lib/bin/bgagent.js events <TASK_ID>
123+
node cli/lib/bin/bgagent.js list --status RUNNING
124124
```
125125

126126
Task states: SUBMITTED -> HYDRATING -> RUNNING -> COMPLETED/FAILED/CANCELLED/TIMED_OUT

abca-plugin/skills/troubleshoot/SKILL.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ aws cognito-idp admin-get-user \
8787

8888
```bash
8989
# Check task events for details
90-
node lib/bin/bgagent.js events <TASK_ID> --output json
90+
node cli/lib/bin/bgagent.js events <TASK_ID> --output json
9191
```
9292

9393
**`preflight_failed`:**
@@ -115,6 +115,34 @@ node lib/bin/bgagent.js events <TASK_ID> --output json
115115
- The Blueprint `modelId` uses a raw foundation model ID (e.g. `anthropic.claude-opus-4-20250514-v1:0`)
116116
- Fix: change to the inference profile ID (e.g. `us.anthropic.claude-opus-4-20250514-v1:0`), update DynamoDB via redeploy
117117

118+
**503 "Too many connections" / task completes with 0 tokens after long duration:**
119+
- Bedrock is throttling model invocations. The agent retries for minutes then gives up.
120+
- Symptoms: task runs for 10-15 minutes, completes with `COMPLETED` status but 0 tokens, 0 cost, no PR, `disk_delta: 0 B`
121+
- Diagnosis:
122+
1. Check application logs for `"text": "API Error: 503 Too many connections"`
123+
2. **Check what model_id is actually being passed** — the DynamoDB record may have a stale model override:
124+
```bash
125+
aws dynamodb get-item \
126+
--table-name <RepoTableName> \
127+
--key '{"repo": {"S": "owner/repo"}}' \
128+
--query 'Item.model_id' --output text
129+
```
130+
- Causes:
131+
- **Stale model_id in DynamoDB** (most common) — the Blueprint `onUpdate` only sets fields present in props; removing a `modelId` prop does NOT remove the field from DynamoDB. The task keeps using the old model.
132+
- Bedrock service-level throttling for the specific model (especially Opus 4 which has limited availability)
133+
- Account quota limits reached
134+
- Fix:
135+
1. **Check and fix the DynamoDB record first** — remove stale `model_id` if present:
136+
```bash
137+
aws dynamodb update-item \
138+
--table-name <RepoTableName> \
139+
--key '{"repo": {"S": "owner/repo"}}' \
140+
--update-expression "REMOVE model_id"
141+
```
142+
2. If model_id is correct, wait and retry — throttling is often transient
143+
3. Switch to a model with higher availability (Sonnet 4.6 > Opus 4 > Haiku)
144+
4. Request a Bedrock quota increase for `InvokeModel` RPM on your model
145+
118146
**`task_timed_out`:**
119147
- 9-hour maximum exceeded
120148
- Consider reducing scope or increasing `max_turns` for complex tasks
@@ -149,11 +177,11 @@ aws cloudformation describe-stacks --stack-name backgroundagent-dev --query 'Sta
149177
aws cloudformation describe-stacks --stack-name backgroundagent-dev --query 'Stacks[0].Outputs' --output table
150178
151179
# Task status
152-
node lib/bin/bgagent.js status <TASK_ID>
153-
node lib/bin/bgagent.js events <TASK_ID> --output json
180+
node cli/lib/bin/bgagent.js status <TASK_ID>
181+
node cli/lib/bin/bgagent.js events <TASK_ID> --output json
154182
155183
# List running tasks
156-
node lib/bin/bgagent.js list --status RUNNING
184+
node cli/lib/bin/bgagent.js list --status RUNNING
157185
158186
# Build health
159187
mise run build

0 commit comments

Comments
 (0)