feat(activity-watcher): phase-1 backend MVP#322
Open
simple-container-forge[bot] wants to merge 1 commit into
Open
Conversation
Implements the activity-watcher service: POST /events ingest with full
validation, GET /users/{id}/events retrieval (newest first), GET /health
liveness probe, SQLite-backed persistence (WAL mode, pure-Go modernc
driver), layered Handler→Service→Repository architecture with extracted
interface for Phase-2 Postgres swap.
Includes multi-stage Dockerfile (CGO_ENABLED=0), OpenAPI 3.0 spec,
smoke test script, design doc, and integration test suite covering
all 7 acceptance criteria.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Semgrep Scan ResultsRepository:
Scanned at 2026-06-12 19:10 UTC |
Security Scan ResultsRepository:
Scanned at 2026-06-12 19:10 UTC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
activity-watcherservice:POST /eventsingest,GET /users/{id}/eventsretrieval,GET /healthliveness probemodernc.org/sqlite— no CGO), layered Handler→Service→Repository with extracted interface for Phase-2 Postgres swapCGO_ENABLED=0), OpenAPI 3.0 spec, smoke test script, integration test suite covering all 7 ACsTest plan
go test -v ./cmd/activity-watcher/...— 5 tests, 9 subtests, all PASSgo build ./...— full monorepo compiles cleandocker run -v aw-data:/data -p 8080:8080 <image> && BASE_URL=http://localhost:8080 ./cmd/activity-watcher/smoke.shForge workflow run
https://app.simple-forge.com/agent-workflow-runs/9050ec9f-4199-4516-af88-a958c515e7d0
🤖 Generated with Claude Code