Refs #426: Clarify authenticated attempt examples#542
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdates the Advisory Attempt Reservations API example documentation to clarify that authenticated attempt registration and release require a GitHub-authenticated browser session cookie for the same account. Unauthenticated requests return 401. Both affected curl commands are amended to include the cookie flag. ChangesAPI Example Documentation Update
Possibly related PRs
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
Baijack-star
left a comment
There was a problem hiding this comment.
Reviewed PR #542 at head c64d31e for the authenticated attempt examples slice.
Evidence checked:
- Diff is limited to docs/api-examples.md and adds the browser-session-cookie flag to the register/release attempt curl examples.
- app/auth.py require_github_login returns 401 when the mrwk_user GitHub session cookie is missing, matching the new unauthenticated-request wording.
- app/bounty_attempts.py wires both POST /api/v1/bounties/{bounty_id}/attempts and POST /api/v1/bounty-attempts/{attempt_id}/release through Depends(require_github_login), while the GET attempts list remains public.
- docs/agent-guide.md already documents the same authenticated browser session cookie for this flow, so this PR makes the API examples consistent with the agent guide.
Validation run locally on the PR branch:
- uv run --extra dev python scripts/docs_smoke.py -> docs smoke ok
- uv run --extra dev ruff check docs/api-examples.md -> All checks passed (no Python files under that path)
- git diff --check origin/main...HEAD -> clean
Assessment: no blocker found in this docs-only slice; it matches the implementation and existing agent-guide contract. No private cookies, tokens, wallet material, production mutation, payout guarantees, liquidity/exchange/off-ramp claims, or private data were used.
|
Reviewed PR #542 at Evidence checked:
Validation:
Assessment: no blocker found. The docs change is small and aligns the API examples with the existing authenticated write-route behavior. |
eliasx45
left a comment
There was a problem hiding this comment.
Reviewed current head c64d31ee9bdebdeead9d2b6b77a55454360de950 for the authenticated attempt API examples.
No blocker found. The docs-only change aligns docs/api-examples.md with the implementation: the read-only attempts list remains unauthenticated, while both write routes are wired through Depends(require_github_login) and therefore return 401 without a signed GitHub browser session. The added cookie note also matches the existing agent-guide examples.
Validation run from the checked-out PR branch:
git diff --check origin/main...HEAD
# clean
.\.venv\Scripts\python.exe scripts\docs_smoke.py
# docs smoke ok
.\.venv\Scripts\python.exe -m pytest tests\test_bounty_attempts.py tests\test_docs_public_urls.py -q
# 30 passed
.\.venv\Scripts\python.exe -m ruff check docs\api-examples.md tests\test_bounty_attempts.py tests\test_docs_public_urls.py
# All checks passed
.\.venv\Scripts\python.exe -m pytest -q
# 414 passed
GitHub PR checks are green for this head: CodeRabbit status and the quality/readiness/docs/image workflow are successful.
|
Bounty #426 is now filled and closed, so this PR is not currently payable under that bounty. Leaving |
barnacleagent-svg
left a comment
There was a problem hiding this comment.
Verdict: APPROVED
Scope: Clarifies authenticated attempt examples in docs/api-examples.md. Adds cookie note for authenticated requests and updates curl examples with -b flag.
Checklist:
- Diff: +5/-0, documentation-only
- Clearer auth flow documentation
- Tests pass
Conclusion: Helpful docs clarification. Ready to merge.
wangedmund77-cmyk
left a comment
There was a problem hiding this comment.
Reviewed current head c64d31ee9bdebdeead9d2b6b77a55454360de950 for bounty #578.
Evidence checked:
- Inspected the docs-only diff in
docs/api-examples.md. git diff --check origin/main...origin/pr/542returned clean.- Ran
uv run pytest tests/test_docs_public_urls.py -qon the PR head: 23 passed. - GitHub mergeability is clean/MERGEABLE.
No blocker found. The added note makes the authenticated attempt examples clearer without changing public API semantics or adding any private credential material.
Summary
Refs #426
Evidence
Checks
Summary by CodeRabbit