Phase 1: file one Paperclip job from a script
Add scripts/paperclip-roundtrip.sh. It files one Paperclip issue and prints
the returned id and identifier. The key comes from the environment, then from
environment.d. The script never prints the key.
Fix the runbook: the create route is POST /api/companies/{companyId}/issues.
The old POST /api/issues route returns 404.
Record the first filed job: AUD-55 (d58891ce-9934-4710-9bba-d37974251ed9).
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -19,7 +19,11 @@ result that returns.
|
||||
`Hub`.
|
||||
- Note: `POST /api/agents/{id}/keys` is **board-only**. A run JWT gets
|
||||
`403 Board access required`. Mint keys with the local board key.
|
||||
2. File one job with `curl`. Use the issue-create endpoint.
|
||||
2. File one job with the round-trip script. The script uses the issue-create
|
||||
endpoint: `POST /api/companies/{companyId}/issues`.
|
||||
- The old `POST /api/issues` route does not exist. It returns `404`.
|
||||
- Company id: `d4921013-e5da-4d88-8016-57d5746e2d03`.
|
||||
- Script: `scripts/paperclip-roundtrip.sh`.
|
||||
3. Confirm the job appears in the Paperclip board.
|
||||
4. Wait for the agent to close the job.
|
||||
5. Send the result to Jervis `POST /announce` so the house speaks it.
|
||||
@@ -28,11 +32,14 @@ result that returns.
|
||||
### Commands
|
||||
|
||||
```bash
|
||||
export PAPERCLIP_API_KEY=<from secrets>
|
||||
curl -s -X POST http://192.168.20.13:3100/api/issues \
|
||||
-H "Authorization: Bearer $PAPERCLIP_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"title":"round-trip test","description":"prove the return path"}'
|
||||
# File one job with the script. It reads PAPERCLIP_API_KEY from the
|
||||
# environment, then from ~/.config/environment.d/10-secrets.conf.
|
||||
scripts/paperclip-roundtrip.sh \
|
||||
--title "Hub round-trip job: confirm the return path" \
|
||||
--description "Prove the outbound Paperclip path." \
|
||||
--assignee 403de1f7-645c-4d35-bc7e-19b01d77bacc \
|
||||
--priority high \
|
||||
--project 7ae791bb-8d9a-462f-99bf-013421d20623
|
||||
|
||||
# Speak the result.
|
||||
curl -s -X POST http://192.168.20.13:8501/announce \
|
||||
|
||||
Reference in New Issue
Block a user