55 lines
1.7 KiB
Markdown
55 lines
1.7 KiB
Markdown
# Example — Single bug fix
|
|
|
|
## User input
|
|
|
|
```
|
|
/agent-goal-skill the login page throws 500 when email has uppercase. fix it.
|
|
```
|
|
|
|
## Shaped output
|
|
|
|
````
|
|
```
|
|
/goal
|
|
|
|
# Goal
|
|
Fix the 500 error on /login route when the submitted email contains uppercase characters.
|
|
|
|
# Context
|
|
- Reported symptom: HTTP 500 on POST /login with email='User@Example.com'
|
|
- Likely cause: <TODO: user confirms — case-sensitive email lookup OR JWT subject mismatch>
|
|
- Repo: <TODO: user fills in>
|
|
- Test suite: <TODO: user fills in — likely `npm test` or `bun test`>
|
|
- Reproduction: `curl -X POST <local-url>/login -d 'email=User@Example.com&password=...'`
|
|
|
|
# Constraints
|
|
- Fix ingestion (normalize on write/read), not output formatting
|
|
- Do NOT change the password hashing or session-cookie shape
|
|
- Do NOT skip existing tests
|
|
- Atomic commit, one PR
|
|
|
|
# Done when
|
|
1. `curl -X POST <url>/login -d 'email=User@Example.com&password=...'` returns 200 or 401, not 500
|
|
2. New test case covers uppercase-email login
|
|
3. `npm test` (or equivalent) exits 0
|
|
4. No lint errors introduced
|
|
|
|
# On block
|
|
FAIL FAST. If reproduction can't be confirmed locally, write the question to ~/.pending.md and exit. Non-interactive run.
|
|
|
|
Token budget: 500K
|
|
```
|
|
|
|
**Sandbox:** `workspace-write`
|
|
**Reasoning effort:** `medium`
|
|
**Caveats:** Reproduction URL + test command are TODO — fill in before dispatching.
|
|
````
|
|
|
|
## What the shaper did
|
|
|
|
- Lifted "fix it" → verifiable outcome ("returns 200 or 401, not 500")
|
|
- Marked unknown paths as `<TODO>` instead of inventing them
|
|
- Added Root-Cause-at-Ingestion guidance in Constraints ("fix ingestion, not output")
|
|
- Sized token budget to single-bug scope (500K)
|
|
- Picked `workspace-write` sandbox (single repo, code edit)
|