go/internal/bugseti
Claude 0096a27c5b fix(bugseti): add background TTL sweeper and configurable workspace limits
The workspace map previously only cleaned up during Capture() calls,
meaning stale entries would accumulate indefinitely if no new captures
occurred. This adds:

- Background sweeper goroutine (Start/Stop lifecycle) that runs every 5
  minutes to evict expired workspaces
- Configurable MaxWorkspaces and WorkspaceTTLMinutes in Config (defaults:
  100 entries, 24h TTL) replacing hardcoded constants
- cleanup() now returns eviction count for observability logging
- Nil-config fallback to safe defaults

Fixes #54

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 05:53:52 +00:00
..
updater feat: BugSETI app, WebSocket hub, browser automation, and MCP tools (#336) 2026-02-05 17:22:05 +00:00
config.go fix(bugseti): add background TTL sweeper and configurable workspace limits 2026-02-16 05:53:52 +00:00
config_test.go fix(bugseti): update config file permissions to 0600 2026-02-16 05:53:52 +00:00
ethics_guard.go fix(bugseti): sanitize shell metacharacters in seeder env vars 2026-02-16 05:53:52 +00:00
ethics_guard_test.go fix(bugseti): sanitize shell metacharacters in seeder env vars 2026-02-16 05:53:52 +00:00
fetcher.go feat: BugSETI app, WebSocket hub, browser automation, and MCP tools (#336) 2026-02-05 17:22:05 +00:00
fetcher_test.go fix(bugseti): add comprehensive tests for FetcherService (#60) 2026-02-16 05:53:52 +00:00
ghcheck.go fix(bugseti): add gh CLI availability check with helpful error 2026-02-16 05:53:52 +00:00
ghcheck_test.go fix(bugseti): add gh CLI availability check with helpful error 2026-02-16 05:53:52 +00:00
go.mod fix(bugseti): add comprehensive tests for FetcherService (#60) 2026-02-16 05:53:52 +00:00
go.sum feat(bugseti): integrate marketplace MCP 2026-02-05 21:36:33 +00:00
mcp_marketplace.go feat(bugseti): add marketplace MCP root 2026-02-05 22:07:24 +00:00
notify.go feat(bugseti): add marketplace MCP root 2026-02-05 22:07:24 +00:00
queue.go fix(bugseti): hold mutex during entire QueueService initialization 2026-02-16 05:53:52 +00:00
seeder.go fix(bugseti): add mutex protection to seeder concurrent access 2026-02-16 05:53:52 +00:00
seeder_test.go feat(bugseti): integrate marketplace MCP 2026-02-05 21:36:33 +00:00
stats.go feat: BugSETI app, WebSocket hub, browser automation, and MCP tools (#336) 2026-02-05 17:22:05 +00:00
submit.go fix(bugseti): add test coverage for SubmitService PR workflow (#64) 2026-02-16 05:53:52 +00:00
submit_test.go fix(bugseti): add test coverage for SubmitService PR workflow (#64) 2026-02-16 05:53:52 +00:00
version.go feat: BugSETI app, WebSocket hub, browser automation, and MCP tools (#336) 2026-02-05 17:22:05 +00:00