Skip to content

Add resumable standalone sourcehunt sessions - #140

Closed
auroter wants to merge 9 commits into
Lazarus-AI:mainfrom
auroter:feat/sourcehunt-resume
Closed

Add resumable standalone sourcehunt sessions#140
auroter wants to merge 9 commits into
Lazarus-AI:mainfrom
auroter:feat/sourcehunt-resume

Conversation

@auroter

@auroter auroter commented Aug 12, 2026

Copy link
Copy Markdown

Summary

  • add schema-versioned, atomically replaced standalone sourcehunt checkpoints plus a per-session process lock
  • add clearwing sourcehunt --resume SESSION_ID with repository/config/commit compatibility checks and fresh provider credential resolution
  • restore ranked targets, completed stages, work-item state, findings, verification/exploitation progress, and lifetime spend without duplicating durable artifacts
  • classify Kimi-compatible HTTP 403 access_terminated_error quota responses as provider_exhausted, stop new scheduling, cancel active work safely, checkpoint, and print the exact resume command
  • define resume budget as the total lifetime session cap; it may be raised or made unlimited but not lowered
  • document that only newly checkpointed standalone legacy-flow sessions are supported; proof flow and legacy sessions without checkpoint.json are rejected

Verification

  • 85 passed: focused resume, CLI compatibility, spend-ledger, native LLM fallback, runner, and pool-budget tests
  • edited-file Ruff checks passed
  • Python byte-compilation passed for core edited modules
  • git diff --check passed
  • full sandboxed suite: 2890 passed, 26 skipped, 54 failed. The remaining failures are restricted-environment failures in untouched areas: writes under the user home directory, loopback socket binds, and Docker/Colima access.

Includes a runner-level provider exhaustion to replacement-credential resume test. No live provider call was performed.

@auroter
auroter marked this pull request as draft August 12, 2026 03:32
@auroter
auroter force-pushed the feat/sourcehunt-resume branch from 54af51d to 0702b42 Compare August 13, 2026 20:16
@auroter

auroter commented Aug 14, 2026

Copy link
Copy Markdown
Author

Closing, this got clobbered and the architecture was sub-par.

@auroter auroter closed this Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant