AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
Python ai-promptsai-skillblueskyclaudeclaude-codeclawhubdeep-researchhackernewsinstagramopenclawpolymarketrecencyredditresearchsocial-mediatiktoktrendstwitterweb-searchyoutube
Residual Review Findings
Source run: ce-code-review on branch fix/xurl-x978 (issue #978), plan docs/plans/2026-08-20-fix-xurl-x978-plan.md. Run dirs: 20260820-220120-767b63a3 (round 1), 20260820-221941-c2d05f7f (round 2).
Round 1 findings (P1 fixed, P3s applied)
- P1 —
stored_auth_status()masked permission-denied store as AUTH_MISSING (skills/last30days/scripts/lib/xurl_x.py).pathlib'sis_file()/is_dir()swallowOSErrorintoFalse, so a chmod-000~/.xurl/auth.ymlreported "no token store" instead of the typedAUTH_ERROR. Fixed with stat-based probes (_is_file/_is_dir) that propagateEACCES;FileNotFoundErrorstays absent → MISSING. Commitsd1ef34e,98795ae. - P3 — legacy flat file precedence (
xurl_x.py): candidate order now prefers the liveauth.ymlover a stale flat file when both are physically possible. Covered bytest_canonical_path_preferred_when_both_layouts_exist. - P3 — AUTH_MISSING detail naming (
xurl_x.py):token_store_path()is re-invoked in the detail string; cosmetic (identical value in scope). Not changed — behavior identical, one redundantPath.home()call in a rare error path. - P3 — test stub fallback (
xurl_x.py): theexcept (AttributeError, TypeError)fallback for path stubs was made explicit and now routes correctly; covered by existing_UnreadableStore/_BrokenFiletests.
Round 2 findings (P3, advisory)
- P3 — dangling-symlink docstring overclaim (
xurl_x.py:118-138):_is_filereturnsFalse(MISSING) for a dangling symlink sincestat()raisesFileNotFoundErroron a missing target. Docstring updated to scope the broken-store claim to permission failures; a dangling target is a missing target and stays MISSING. - P3 — stat-PermissionError on candidate scan untested (testing reviewer): added
test_permission_denied_parent_stat_reports_error_not_missing(chmod-000 parent dir → AUTH_ERROR) and hardenedtest_permission_denied_read_reports_error_not_missingwith a root-euid guard. - P3 — "both layouts exist" test naming (testing reviewer): the two layouts cannot physically coexist (
~/.xurlis either a file or a directory), so the test pins canonical-path selection rather than a file-vs-dir race. Left as-is with accurate comment. - P3 — redundant
token_store_path()in MISSING detail (reliability reviewer, advisory): cosmetic; no behavior change.
Not filed as tracker tickets
All remaining items are P3 advisory/cosmetic with no user-visible impact; the two with real regression value were applied as tests. No GitHub issues filed.
Verification
uv run pytest tests/test_xurl_x.py→ 54 passeduv run pytest tests/test_env_v3.py tests/test_backend_descriptors.py tests/test_diagnose_compat.py→ 132 passeduv run pytest -q --ignore=tests/test_network.py→ full suite passedgit diff --checkclean