Skip to content

Harden watcher security and sync handling#5

Merged
abpai merged 4 commits into
mainfrom
fixes/security-and-sync
Apr 7, 2026
Merged

Harden watcher security and sync handling#5
abpai merged 4 commits into
mainfrom
fixes/security-and-sync

Conversation

@abpai

@abpai abpai commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • harden watcher marker files by creating private temp directories and cleaning them up as a unit
  • respect commander report/setup toggles, including --no-enrich and provider-specific AI config fields
  • reduce secret exposure by trimming git diff context, redacting sensitive context lines, and keeping dashboard API keys in memory only
  • reuse the watch pipeline database for sync runtime backfill and periodic sync instead of opening a second connection

Verification

  • bun test src/commands/activity-report.test.ts src/commands/setup.test.ts src/capture/platform/marker-files.test.ts src/enrichment/redact.test.ts
  • bun test src/server/server.test.ts
  • bun test src/capture src/runtime
  • bun x tsc --noEmit

Notes

  • No data migrations required
  • .agents/LEARNINGS.md remains local and is not part of this PR

@abpai abpai merged commit f1e4baf into main Apr 7, 2026
1 check passed
@abpai abpai deleted the fixes/security-and-sync branch April 7, 2026 20:26
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