Skip to content

Harden worker concurrency foundations - #126

Merged
danii1 merged 1 commit into
mainfrom
feat/concurrency-foundations
Sep 4, 2026
Merged

Harden worker concurrency foundations#126
danii1 merged 1 commit into
mainfrom
feat/concurrency-foundations

Conversation

@danii1

@danii1 danii1 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Extracts the low-risk foundations from #47 without introducing its scheduler, worktree lanes, or per-repository concurrency model.

  • centralize SQLite connection hardening for shared worker state
  • enable WAL, NORMAL synchronous mode, and a 5-second busy timeout on writable connections
  • configure read-only connections without mutating persistent database state
  • add an awaited and bounded worker shutdown hook for a future execution supervisor
  • force a non-zero exit when a second shutdown signal arrives
  • continue final cleanup when individual cleanup stages fail

This PR does not enable concurrent task execution. Scheduling and sandbox lifecycle design will follow separately around task-lifetime microVMs and one canonical Git workflow.

Verification

  • pre-commit format, lint, and typecheck hooks passed
  • pre-push monorepo tests and typecheck passed
  • @getdevintern/code: 1313 tests passed
  • focused concurrency and shutdown suite: 111 tests passed

Supersedes #47.

@danii1
danii1 merged commit 1a7ed53 into main Sep 4, 2026
1 check passed
@danii1
danii1 deleted the feat/concurrency-foundations branch September 4, 2026 04:46
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