diff --git a/reports/performance/daily-perf-report-2026-02-19.md b/reports/performance/daily-perf-report-2026-02-19.md deleted file mode 100644 index bbf795c..0000000 --- a/reports/performance/daily-perf-report-2026-02-19.md +++ /dev/null @@ -1,18 +0,0 @@ -# Daily Performance Report: 2026-02-19 - -## Summary -Routine scan identified standard timeout/interval usage. No critical P0 issues found in new code. - -## Findings -- `src/services/memory/scheduler.js`: Uses `setInterval`. Ensure lifecycle management is correct. -- `src/lock-ops.mjs`: Uses `setTimeout` for lock timeouts. Standard pattern. - -## Metrics -- Login Time: N/A (Manual Run) -- Decrypt Queue: N/A - -## PRs -- None. - -## Blockers -- None. diff --git a/src/context/CONTEXT_2026-02-19T00-00-00Z.md b/src/context/CONTEXT_2026-02-19T00-00-00Z.md deleted file mode 100644 index 5325caa..0000000 --- a/src/context/CONTEXT_2026-02-19T00-00-00Z.md +++ /dev/null @@ -1,25 +0,0 @@ -Agent: perf-agent -Cadence: daily -Run Start: 2026-02-19T00:00:00Z -Prompt: src/prompts/daily/perf-agent.md - -# Context: Performance Audit - -## Goal -Daily measurable improvement of app responsiveness by finding and fixing background CPU/network work. - -## Scope -- Login/auth -- Relay initialization -- Decryption of user lists -- `/content` documentation - -## Constraints -- Never invent files, APIs, libraries, or behaviors. -- Prefer minimal incremental changes. -- Keep builds/tests green. - -## Plan -1. Run search patterns. -2. Produce daily performance report. -3. Update artifacts. diff --git a/src/decisions/DECISIONS_2026-02-19T00-00-00Z.md b/src/decisions/DECISIONS_2026-02-19T00-00-00Z.md deleted file mode 100644 index e2a6476..0000000 --- a/src/decisions/DECISIONS_2026-02-19T00-00-00Z.md +++ /dev/null @@ -1,12 +0,0 @@ -Agent: perf-agent -Cadence: daily -Run Start: 2026-02-19T00:00:00Z -Prompt: src/prompts/daily/perf-agent.md - -# Decisions: Performance Audit - -## Decision 1: Focus on Inventory -**Rationale**: Focus on search patterns for new code to identify issues without causing regressions. - -## Decision 2: Defer Fixes -**Rationale**: No critical fixes applied in this run. Deferred to future PRs to minimize risk without deep testing. diff --git a/src/test_logs/TEST_LOG_2026-02-19T00-00-00Z.md b/src/test_logs/TEST_LOG_2026-02-19T00-00-00Z.md deleted file mode 100644 index b00c6db..0000000 --- a/src/test_logs/TEST_LOG_2026-02-19T00-00-00Z.md +++ /dev/null @@ -1,12 +0,0 @@ -Agent: perf-agent -Cadence: daily -Run Start: 2026-02-19T00:00:00Z -Prompt: src/prompts/daily/perf-agent.md - -# Test Log: Performance Audit - -- **Command**: `grep -rE "setInterval|setTimeout" src/` -- **Result**: Success (Hits found and logged to `reports/performance/hits-2026-02-19.json`). - -- **Command**: `npm run lint` -- **Result**: Success (Repository checks passed). diff --git a/src/todo/TODO_2026-02-19T00-00-00Z.md b/src/todo/TODO_2026-02-19T00-00-00Z.md deleted file mode 100644 index 7d7653f..0000000 --- a/src/todo/TODO_2026-02-19T00-00-00Z.md +++ /dev/null @@ -1,14 +0,0 @@ -Agent: perf-agent -Cadence: daily -Run Start: 2026-02-19T00:00:00Z -Prompt: src/prompts/daily/perf-agent.md - -# Todo: Performance Tasks - -## Completed Tasks -- [x] Run performance search patterns -- [x] Generate daily report -- [x] Check for immediate P0 issues - -## Pending Tasks -- [ ] Implement fixes (deferred to next run or separate PR) diff --git a/task-logs/daily/2026-02-19T00-00-00Z__perf-agent__completed.md b/task-logs/daily/2026-02-19T00-00-00Z__perf-agent__completed.md deleted file mode 100644 index 292f716..0000000 --- a/task-logs/daily/2026-02-19T00-00-00Z__perf-agent__completed.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -agent: perf-agent -cadence: daily -platform: jules ---- - -# Completed: perf-agent - -## Summary -Routine scan identified standard timeout/interval usage. No critical P0 issues found in new code. - -## Artifacts -- src/context/CONTEXT_2026-02-19T00-00-00Z.md -- src/todo/TODO_2026-02-19T00-00-00Z.md -- src/decisions/DECISIONS_2026-02-19T00-00-00Z.md -- src/test_logs/TEST_LOG_2026-02-19T00-00-00Z.md -- reports/performance/hits-2026-02-19.json -- reports/performance/daily-perf-report-2026-02-19.md diff --git a/test/run-scheduler-cycle-memory-policy.test.mjs b/test/run-scheduler-cycle-memory-policy.test.mjs index bfd6b63..f632c0f 100644 --- a/test/run-scheduler-cycle-memory-policy.test.mjs +++ b/test/run-scheduler-cycle-memory-policy.test.mjs @@ -67,6 +67,7 @@ async function setupFixture({ await fs.mkdir(path.join(root, 'src', 'prompts'), { recursive: true }); await fs.mkdir(path.join(root, 'src', 'prompts', 'daily'), { recursive: true }); + await fs.copyFile(path.resolve('src/utils.mjs'), path.join(root, 'src', 'utils.mjs')); await fs.mkdir(scriptsDir, { recursive: true }); await fs.mkdir(binDir, { recursive: true });