Commit Graph
573 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN b012ae19da test: enhance coverage for relay alert thresholds
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-18 03:27:21 +00:00
thePR0M3TH3AN cea50da512 Merge pull request #268 from PR0M3TH3AN/agents/daily/docs-agent-2026-02-18-7952298957749290543
Daily Scheduler: docs-agent run
2026-02-17 21:32:10 -05:00
thePR0M3TH3AN 214fe54ca8 Merge pull request #267 from PR0M3TH3AN/agents/daily/design-system-audit-2026-02-18-1397951051448174521
Daily Agent: Design System Audit
2026-02-17 21:30:11 -05:00
google-labs-jules[bot]andPR0M3TH3AN f436beab9b docs(agent): audit and improve documentation (docs-agent)
- Created `CONTRIBUTING.md` with development instructions.
- Updated `README.md` to include a Development section.
- Added daily scheduler run artifacts.
- Completed scheduler cycle for `docs-agent`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-18 01:16:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN c90508ba42 chore(ui): design system audit (autofixes)
- Ran design-system-audit-agent.
- Audited landing/index.html for inline styles and design system violations.
- Applied safe auto-fixes to landing/index.html (margins, colors, text alignment).
- Generated audit report in task-logs/daily/.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-18 00:24:07 +00:00
thePR0M3TH3AN f343af246f Merge pull request #266 from PR0M3TH3AN/agents/daily/deps-security-agent-2026-02-17-6568228938484904642
Daily Scheduler: deps-security-agent
2026-02-17 18:40:25 -05:00
thePR0M3TH3AN b122da6365 Merge pull request #265 from PR0M3TH3AN/agents/daily/2026-02-17T22-28-08-decompose-agent-17472629862250051313
[scheduler] daily/decompose-agent: Decompose scripts/agent/run-scheduler-cycle.mjs
2026-02-17 18:39:47 -05:00
google-labs-jules[bot]andPR0M3TH3AN da4d360af1 chore(scheduler): execute deps-security-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 23:27:49 +00:00
google-labs-jules[bot]andPR0M3TH3AN 9e993800fa [scheduler] daily/decompose-agent: Decompose scripts/agent/run-scheduler-cycle.mjs
- Executed daily scheduler cycle.
- Selected `decompose-agent` (next in roster).
- Decomposed `scripts/agent/run-scheduler-cycle.mjs` (1127 lines) into `scripts/agent/scheduler-utils.mjs` (195 lines) and `scripts/agent/scheduler-lock.mjs` (173 lines).
- Resulting main file size: 788 lines (339 lines reduction).
- Fixed lint warnings.
- Updated `test/scheduler-preflight-lock.e2e.test.mjs`, `test/run-scheduler-cycle-memory-policy.test.mjs`, `test/scheduler-lock-failure-schema.contract.test.mjs` to copy new modules into test fixtures.
- Updated `test/scheduler-ratchet.test.mjs` to verify moved functions in `scheduler-lock.mjs`.
- Note: `scripts/check-file-size.mjs` was not updated as it lacks the baseline feature referenced in the prompt.
- Created artifacts: `src/context/CONTEXT_...`, `src/decisions/DECISIONS_...`, `src/test_logs/TEST_LOG_...`, `src/todo/TODO_...`.
- Created scheduler log: `task-logs/daily/2026-02-17T22-29-00Z__decompose-agent__completed.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 22:41:37 +00:00
thePR0M3TH3AN 7f45ff84b4 Merge pull request #264 from PR0M3TH3AN/agents/daily/content-audit-agent-2026-02-17-3211903591273154654
Daily Agent: content-audit-agent run (missing content directory) + fix lock-ops
2026-02-17 17:00:16 -05:00
google-labs-jules[bot]andPR0M3TH3AN ed56a72f69 Daily Agent: content-audit-agent run (missing content directory) + fix lock-ops
- Audited `/content` directory: Not found.
- Updated `KNOWN_ISSUES.md`.
- Fixed a bug in `src/lock-ops.mjs` where `deps` was undefined in `LockPublisher`.
- Created run artifacts and task logs.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 21:39:10 +00:00
thePR0M3TH3AN ee6618d6d5 Merge pull request #263 from PR0M3TH3AN/agents/daily/ci-health-agent-2026-02-17-8365488986185039286
chore(scheduler): Execute ci-health-agent (fix bugs, improve verification)
2026-02-17 15:09:41 -05:00
thePR0M3TH3AN 8fb2a2ab99 Merge branch 'main' into agents/daily/ci-health-agent-2026-02-17-8365488986185039286 2026-02-17 15:09:34 -05:00
google-labs-jules[bot]andPR0M3TH3AN 5e99e81f2d chore(scheduler): Execute ci-health-agent and fix critical bugs
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 19:58:43 +00:00
thePR0M3TH3AN 2bdb728bd3 Merge pull request #262 from PR0M3TH3AN/agents/weekly/frontend-console-debug-agent-3080226125712323863
fix(dashboard): Allow access to src/constants.mjs and fix lock-ops
2026-02-17 14:57:53 -05:00
thePR0M3TH3AN 010fea88e3 Merge branch 'main' into agents/weekly/frontend-console-debug-agent-3080226125712323863 2026-02-17 14:53:27 -05:00
thePR0M3TH3AN 43941cccf0 Merge pull request #261 from PR0M3TH3AN/scheduler-const-refactor-fix-11733749972945038277
Refactor lock backend constants and fix scheduler errors
2026-02-17 14:52:52 -05:00
google-labs-jules[bot]andPR0M3TH3AN 2466c80af9 fix(dashboard): Allow access to src/constants.mjs and fix lock-ops
`frontend-console-debug-agent` run:
- Fixed a 403 Forbidden error in `src/dashboard.mjs` preventing `src/constants.mjs` from loading by adding it to the `allowedPaths` whitelist.
- Refactored `src/lock-ops.mjs` to fix a critical syntax error in `LockPublisher` class.
- Fixed a typo in `src/cmd-check.mjs` (`queryLocksFn` -> `queryLocks`).
- Added `@playwright/test` for frontend debugging.
- Added `scripts/agent/debug_frontend.mjs` for reproduction.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 19:52:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN 03ccb232ee Refactor lock backend constants and fix scheduler syntax error
- Extracted hardcoded retry/health constants from `src/lock-ops.mjs` to `src/constants.mjs`.
- Refactored `src/lock-ops.mjs` to use `LockPublisher` class pattern and shared constants.
- Fixed `SyntaxError` in `src/lock-ops.mjs` (function inside function).
- Fixed `ReferenceError` in `src/cmd-check.mjs` (`queryLocksFn` -> `queryLocks`).
- Verified with unit tests (`test:unit:lock-backend`) and linting.
- Completed daily scheduler cycle for `const-refactor-agent`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 19:50:48 +00:00
thePR0M3TH3AN 7f87c371fc Merge pull request #255 from PR0M3TH3AN/fix-insecure-random-backoff-15480292305985131336
🔒 Fix insecure random number generator in backoff logic
2026-02-17 14:30:21 -05:00
thePR0M3TH3AN 058011089d Merge branch 'main' into fix-insecure-random-backoff-15480292305985131336 2026-02-17 14:30:13 -05:00
thePR0M3TH3AN 6e31c9cec6 Merge pull request #258 from PR0M3TH3AN/fix-scheduler-env-leak-137317158852257446
🔒 Fix environment variable leakage in scheduler cycle
2026-02-17 14:29:53 -05:00
thePR0M3TH3AN 94d4136070 Merge pull request #259 from PR0M3TH3AN/refactor-cmdinit-ops-5287196156995262612
🧹 Refactor cmdInit in src/ops.mjs
2026-02-17 14:29:39 -05:00
thePR0M3TH3AN 59c286e247 Merge branch 'main' into refactor-cmdinit-ops-5287196156995262612 2026-02-17 14:29:31 -05:00
thePR0M3TH3AN 0c41456db6 Merge pull request #254 from PR0M3TH3AN/refactor-cmd-init-10842756279574756855
🧹 Refactor cmdInit in src/ops.mjs
2026-02-17 14:29:07 -05:00
thePR0M3TH3AN 65a3afc7e4 Merge pull request #252 from PR0M3TH3AN/refactor-lock-ops-publish-lock-16349393256066370386
Refactor publishLock to LockPublisher class
2026-02-17 14:28:46 -05:00
thePR0M3TH3AN 2c51424b6d Merge branch 'main' into refactor-lock-ops-publish-lock-16349393256066370386 2026-02-17 14:28:12 -05:00
thePR0M3TH3AN db38fb0e91 Merge pull request #256 from PR0M3TH3AN/refactor-lock-ops-state-3445549076565547288
Refactor lock-ops to encapsulate global state
2026-02-17 14:27:22 -05:00
thePR0M3TH3AN c2ceb00174 Merge pull request #250 from PR0M3TH3AN/test-improvement-get-relevant-memories-15158310533650216935
Test Improvement: Make getRelevantMemories testable and add unit tests
2026-02-17 14:27:03 -05:00
thePR0M3TH3AN fb558b0b4d Merge branch 'main' into test-improvement-get-relevant-memories-15158310533650216935 2026-02-17 14:26:54 -05:00
thePR0M3TH3AN e355330e5b Merge pull request #253 from PR0M3TH3AN/test-triggerPruneDryRun-12931935296810438248
test: Add tests for triggerPruneDryRun
2026-02-17 14:26:29 -05:00
thePR0M3TH3AN 79a33958ab Merge pull request #260 from PR0M3TH3AN/jules-perf-async-config-1969443791138192182
⚡ Async Config Loading Optimization
2026-02-17 14:26:16 -05:00
thePR0M3TH3AN 3502d38431 Merge branch 'main' into jules-perf-async-config-1969443791138192182 2026-02-17 14:26:06 -05:00
thePR0M3TH3AN da2e623b7c Merge pull request #246 from PR0M3TH3AN/test-render-prompt-memory-context-18203619131675777622
test: add comprehensive tests for renderPromptWithMemoryContext
2026-02-17 14:25:39 -05:00
thePR0M3TH3AN cc6f9d9259 Merge pull request #247 from PR0M3TH3AN/test/ingest-events-coverage-4058176338689655233
Add unit tests for ingestEvents function
2026-02-17 14:25:13 -05:00
thePR0M3TH3AN 4a59ccd501 Merge branch 'main' into test/ingest-events-coverage-4058176338689655233 2026-02-17 14:25:04 -05:00
thePR0M3TH3AN 26c878bdd9 Merge pull request #245 from PR0M3TH3AN/test-memory-ingest-events-14179486498291680650
Add unit tests for memory ingestEvents
2026-02-17 14:24:33 -05:00
thePR0M3TH3AN f79eae6ae9 Merge pull request #248 from PR0M3TH3AN/test/memory-stats-coverage-2370317382454489346
test: Add comprehensive tests for memoryStats function
2026-02-17 14:24:08 -05:00
thePR0M3TH3AN e9dcfb8c01 Merge pull request #251 from PR0M3TH3AN/test/cmd-check-improvements-4816638132352517865
🧪 Add tests for cmdCheck
2026-02-17 14:23:46 -05:00
thePR0M3TH3AN 4159ce1ad5 Merge pull request #257 from PR0M3TH3AN/jules-memory-prune-tests-5206348108909836817
Add tests for memory pruning cycle
2026-02-17 14:23:00 -05:00
thePR0M3TH3AN 670fdc2b22 Merge pull request #249 from PR0M3TH3AN/test-lock-utils-error-handling-1774013981640093185
🧪 Add missing error handling test for lock-utils
2026-02-17 14:22:30 -05:00
thePR0M3TH3AN 092169b0b9 Merge branch 'main' into test-lock-utils-error-handling-1774013981640093185 2026-02-17 14:22:09 -05:00
thePR0M3TH3AN 7128e6944b Merge pull request #244 from PR0M3TH3AN/test/lock-utils-coverage-13528701171132659276
Add unit tests for getCompletedAgents in src/lock-utils.mjs
2026-02-17 14:21:40 -05:00
google-labs-jules[bot]andPR0M3TH3AN 50b0cf5a07 perf: Refactor config loading to be non-blocking async
Replaces synchronous `fs.readFileSync` with `fs.promises.readFile` in `loadTorchConfig` to prevent event loop blocking.
Updates all dependent configuration getters and consumers to use async/await.
Includes benchmark proving non-blocking behavior.
Fixes dashboard tests to properly await server listening.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 19:02:46 +00:00
google-labs-jules[bot]andPR0M3TH3AN 68da87ac48 Refactor cmdInit in src/ops.mjs to improve modularity and maintainability
- Extracted logic into helper functions: `resolveConfiguration`, `ensureInstallDirectory`, `installAppAssets`, `installTorchAssets`, `configureTorch`, `injectHostScriptsIfNeeded`.
- Updated `cmdInit` to orchestrate these functions.
- Verified functionality with existing tests.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 19:01:15 +00:00
google-labs-jules[bot]andPR0M3TH3AN bd9641a536 Sanitize environment variables in run-scheduler-cycle.mjs
Prevent sensitive environment variables from leaking into child processes spawned by the scheduler. Introduce `getSafeEnv` whitelist and default `runCommand` to use it. Explicitly allow system, node, CI, and application-specific (NOSTR_, TORCH_, SCHEDULER_, AGENT_) variables. Removed `inheritProcessEnv: true` from user commands to enforce this security policy. Added `Path` support for Windows.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 18:59:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN a940172998 feat(test): add tests for runPruneCycle
- Added `test/memory-run-prune-cycle.test.mjs` to test `runPruneCycle` logic.
- Covered active pruning, dry-run, off mode, telemetry/metrics, and scheduling.
- Utilized environment isolation (temp dir) to prevent side effects on `.scheduler-memory/memory-store.json`.
- Addressed testing gap for `runPruneCycle` in `src/services/memory/index.js`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 18:55:55 +00:00
google-labs-jules[bot]andPR0M3TH3AN 59fbe1f4b8 Refactor lock-ops to encapsulate global state in RelayHealthManager class
- Replaces module-level mutable state (`metricsByRelay`, `lastSnapshotAt`) with `RelayHealthManager` class.
- Moves state-dependent functions (`ensureRelayMetrics`, `rankRelaysByHealth`, etc.) to class methods.
- Updates `queryLocks` and `publishLock` to support dependency injection for `healthManager`.
- Maintains backward compatibility via `defaultHealthManager` singleton.
- Adds `test/relay-health-manager.test.mjs` to verify state isolation and functionality.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 18:55:11 +00:00
google-labs-jules[bot]andPR0M3TH3AN 568d37a45c Fix insecure random number generator in backoff logic
Replaced `Math.random` with a cryptographically secure random number generator using `node:crypto.randomInt` in `src/lock-ops.mjs` to prevent potential timing attacks or predictability in backoff delays.

Added `test/secure-random.test.mjs` to verify the secure random generator.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 18:54:42 +00:00
google-labs-jules[bot]andPR0M3TH3AN bcc501e52f Refactor cmdInit in src/ops.mjs to improve modularity
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 18:54:33 +00:00