Commit Graph
937 Commits
Author SHA1 Message Date
thePR0M3TH3AN 78e90669c7 Merge pull request #390 from PR0M3TH3AN/fix/lock-utils-imports-13445229136005844691
refactor(lock): centralize lock utility functions
2026-02-21 14:55:47 -05:00
google-labs-jules[bot]andPR0M3TH3AN 4e01a33cc2 fix(lock): fix potential duplicate imports in lock-publisher
- Rewrote `src/lock-publisher.mjs` to ensure clean imports and no duplicate declarations of `withTimeout`.
- This addresses the lint error `Identifier 'withTimeout' has already been declared` seen in CI.
- Verified lint passes locally.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:54:06 +00:00
thePR0M3TH3AN f47fe02a94 Merge branch 'main' into fix/lock-utils-imports-13445229136005844691 2026-02-21 14:49:37 -05:00
thePR0M3TH3AN 3d788c58a7 Merge pull request #421 from PR0M3TH3AN/agents/daily/style-agent-7331917025368212480
chore(scheduler): Execute daily style-agent and fix lock-utils export
2026-02-21 14:48:55 -05:00
google-labs-jules[bot]andPR0M3TH3AN ef22045a61 fix(scheduler): Resolve CI module export error in lock-utils
- Fix `SyntaxError: The requested module './lock-utils.mjs' does not provide an export named 'withTimeout'` by refactoring exports in `src/lock-utils.mjs`.
- Explicitly import `relayListLabel` and `mergeRelayList` from `src/utils.mjs` before exporting them to avoid ambiguous export behavior in some environments.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:46:26 +00:00
google-labs-jules[bot]andPR0M3TH3AN 9c801da049 fix(lock): remove unused randomInt import
- Removed `randomInt` from `src/lock-publisher.mjs` imports as it is no longer used (replaced by `secureRandom` from `src/lock-utils.mjs`).
- Verified lint passes locally.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:44:50 +00:00
thePR0M3TH3AN cb8ded018a Merge branch 'main' into agents/daily/style-agent-7331917025368212480 2026-02-21 14:40:02 -05:00
thePR0M3TH3AN 30e7215fa7 Merge branch 'main' into fix/lock-utils-imports-13445229136005844691 2026-02-21 14:39:43 -05:00
google-labs-jules[bot]andPR0M3TH3AN e84f16905a chore(scheduler): Execute daily style-agent and fix lock-utils export
- Fix missing `mergeRelayList` export in `src/lock-utils.mjs`.
- Execute `style-agent` workflow.
- Update `KNOWN_ISSUES.md` with missing `format` script issue.
- Add incident report `docs/agent-handoffs/incidents/2026-02-21-missing-format-script.md`.
- Add run artifacts (Context, Todo, Decisions, Test Logs, Task Log).
- Add memory update.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:39:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN c1b4c9b50b fix(lock): fix secureRandom undefined error in lock-publisher
- Imported `secureRandom` from `src/lock-utils.mjs` in `src/lock-publisher.mjs`.
- Removed duplicate local definition of `secureRandom` in `src/lock-publisher.mjs`.
- Verified lint passes locally.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:35:56 +00:00
thePR0M3TH3AN a133b01076 Merge pull request #394 from PR0M3TH3AN/fix/lock-utils-duplication-4209096036628143867
refactor(lock-utils): consolidate duplicate function declarations
2026-02-21 14:34:39 -05:00
google-labs-jules[bot]andPR0M3TH3AN eefab43fdf fix(lock-utils): consolidate function declarations and fix CI failures
- Imported `randomInt` from `node:crypto` in `src/lock-publisher.mjs` to fix CI failure.
- Centralized `withTimeout` and `mergeRelayList` in `src/utils.mjs`.
- Updated `src/lock-utils.mjs` to re-export them.
- Removed local redefinitions in `src/lock-ops.mjs` and `src/lock-publisher.mjs`.
- Fixed `test/utils.test.mjs` imports.
- Verified all tests pass.

This resolves the N/A documentation task by ensuring the codebase is in a valid state.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:32:26 +00:00
thePR0M3TH3AN 61d96229ce Merge branch 'main' into fix/lock-utils-imports-13445229136005844691 2026-02-21 14:29:13 -05:00
thePR0M3TH3AN a08e752b0e Merge branch 'main' into fix/lock-utils-duplication-4209096036628143867 2026-02-21 14:27:37 -05:00
thePR0M3TH3AN 3408e2ea76 Merge pull request #409 from PR0M3TH3AN/testing-improvement-cmd-rollback-5981959177572314725
Add tests for cmdRollback
2026-02-21 14:26:46 -05:00
thePR0M3TH3AN 056d8ebc90 Merge pull request #386 from PR0M3TH3AN/fix-torch-lock-commands-3759471574036935483
Fix TORCH lock commands
2026-02-21 14:25:36 -05:00
thePR0M3TH3AN 047a1fd2f8 Merge branch 'main' into fix-torch-lock-commands-3759471574036935483 2026-02-21 14:25:30 -05:00
google-labs-jules[bot]andPR0M3TH3AN c0c5ac5473 fix(torch-lock): re-apply fixes for circular deps and syntax errors
- Moved `withTimeout` implementation to `src/lock-utils.mjs` and exported it correctly.
- Removed duplicate local definitions of `withTimeout`, `mergeRelayList`, and `secureRandom` in `src/lock-ops.mjs` and `src/lock-publisher.mjs`.
- Fixed imports in `src/lock-ops.mjs`, `src/lock-publisher.mjs`, and `src/relay-health.mjs` to use `src/lock-utils.mjs` consistently.
- Updated `test/utils.test.mjs` and `test/utils-async.test.mjs` to fix broken imports and test definitions.
- Verified `npm run lock:complete` and `npm run scheduler:daily` execute correctly.
- Updated `src/todo/TODO_2026-02-20T03-00-00Z.md` to mark verification task as completed.
- Verified `src/relay-health.mjs` does not use `MINUTE_MS` locally, despite mysterious CI error. Confirmed imports are correct.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:23:48 +00:00
thePR0M3TH3AN 87facb415a Merge pull request #387 from PR0M3TH3AN/fix/security-remove-default-creds-12747623644908748667
🔒 Fix: Remove default credentials from example config
2026-02-21 14:17:57 -05:00
thePR0M3TH3AN 45a666a7ed Merge branch 'main' into fix/security-remove-default-creds-12747623644908748667 2026-02-21 14:17:49 -05:00
thePR0M3TH3AN fb672d380f Merge branch 'main' into fix-torch-lock-commands-3759471574036935483 2026-02-21 14:16:25 -05:00
thePR0M3TH3AN 7b375da1cb Merge pull request #385 from PR0M3TH3AN/chore/audit-memory-store-17064585358903407526
chore(audit): store audit results in memory
2026-02-21 14:15:47 -05:00
thePR0M3TH3AN 3f03cfd690 Merge branch 'main' into chore/audit-memory-store-17064585358903407526 2026-02-21 14:15:40 -05:00
thePR0M3TH3AN 933bbad941 Merge pull request #369 from PR0M3TH3AN/test-lock-utils-helpers-17746102477708828726
🧪 Add tests for lock-utils helpers
2026-02-21 14:15:21 -05:00
thePR0M3TH3AN cff50e54a4 Merge pull request #407 from PR0M3TH3AN/refactor-lock-ops-modules-18356835837586404683
Refactor lock-ops to use new modules
2026-02-21 14:13:48 -05:00
thePR0M3TH3AN bdda09c7b2 Merge pull request #406 from PR0M3TH3AN/test/upload-validation-15691315589845316357
Verify absence of upload endpoints via test
2026-02-21 14:13:22 -05:00
thePR0M3TH3AN 67ebd6a504 Merge branch 'main' into test/upload-validation-15691315589845316357 2026-02-21 14:13:15 -05:00
thePR0M3TH3AN fd634b0319 Merge pull request #404 from PR0M3TH3AN/fix-dashboard-auth-plaintext-8015911861283425351
🔒 Fix Plaintext Password Storage in Dashboard Auth
2026-02-21 14:13:02 -05:00
thePR0M3TH3AN 74c08c721a Merge pull request #415 from PR0M3TH3AN/security/dashboard-rate-limit-6123396415409218177
feat(dashboard): implement rate limiting for basic auth
2026-02-21 14:12:56 -05:00
thePR0M3TH3AN 243291ba93 Merge pull request #405 from PR0M3TH3AN/docs/remove-hallucinated-upload-audit-workflow-10015363657697346579
Remove hallucinated upload audit workflow from perf-agent
2026-02-21 14:12:50 -05:00
thePR0M3TH3AN 54e9e35e83 Merge pull request #418 from PR0M3TH3AN/refactor/memory-coalescing-worker-7175585698335360965
Refactor memory store save logic to use CoalescingWorker
2026-02-21 14:11:54 -05:00
thePR0M3TH3AN 77c8b88ae6 Merge pull request #416 from PR0M3TH3AN/perf-optimize-memory-cache-expiration-16783439769219340578
⚡ Optimize memory cache expiration strategy
2026-02-21 14:11:48 -05:00
thePR0M3TH3AN 873e649b2f Merge pull request #414 from PR0M3TH3AN/perf/async-roster-loading-4439301282033623986
⚡ Optimize Roster Loading to Async
2026-02-21 14:11:40 -05:00
thePR0M3TH3AN ac1a336356 Merge pull request #408 from PR0M3TH3AN/refactor-lock-publisher-10794332597523183742
🧹 Refactor LockPublisher.publish for clarity
2026-02-21 14:11:08 -05:00
thePR0M3TH3AN 003d6d77e1 Merge pull request #410 from PR0M3TH3AN/refactor/cmd-lock-cleanup-4510057441025896900
Refactor cmdLock to improve code health and modularity
2026-02-21 14:11:02 -05:00
thePR0M3TH3AN e242860fd6 Merge pull request #413 from PR0M3TH3AN/jules/test-cmd-backup-16743310224352411678
Add tests for cmdBackup
2026-02-21 14:09:25 -05:00
thePR0M3TH3AN 121b684e67 Merge pull request #417 from PR0M3TH3AN/refactor/memory-cache-invalidation-5975056545656617658
🧹 Granular memory cache invalidation
2026-02-21 14:09:14 -05:00
thePR0M3TH3AN 04f6a5db31 Merge pull request #419 from PR0M3TH3AN/add-cmd-proposal-tests-8161916931821665354
🧪 Add tests for cmdProposal
2026-02-21 14:09:01 -05:00
thePR0M3TH3AN 28eb75392f Merge pull request #420 from PR0M3TH3AN/agents/daily/content-audit-agent-2026-02-21-7949657867376003219
Content Audit: Update CLI Help Text
2026-02-21 14:08:49 -05:00
thePR0M3TH3AN 348584bcfd Merge pull request #411 from PR0M3TH3AN/fix/ajv-vulnerability-investigation-1402978429090949813
docs(todo): mark security investigations as complete
2026-02-21 14:08:25 -05:00
thePR0M3TH3AN 177b3490a6 Merge pull request #412 from PR0M3TH3AN/extract-lock-publisher-7118928735632343648
Extract LockPublisher and helpers to src/lock-publisher.mjs
2026-02-21 14:08:11 -05:00
thePR0M3TH3AN c7722e4c49 Merge pull request #403 from PR0M3TH3AN/fix/eslint-minimatch-vulnerability-7654847843713233456
chore: upgrade eslint to resolve minimatch and ajv vulnerabilities
2026-02-21 14:07:56 -05:00
google-labs-jules[bot]andPR0M3TH3AN 7f5d8fdc7f Content Audit: Update CLI Help Text
- Updated src/constants.mjs USAGE_TEXT to include missing commands (backup, proposal, rollback) documented in README.md.
- Validated docs links and implementation consistency.
- Added run artifacts and memory update.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 18:51:03 +00:00
google-labs-jules[bot]andPR0M3TH3AN e8702b4520 Remove unused import PUBLISH_ERROR_CODES from lock-publisher.mjs
- Removes `PUBLISH_ERROR_CODES` from `src/lock-publisher.mjs` imports as it was unused and caused a lint failure in CI.
- Verified with `npm run lint` and relevant tests.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 18:39:40 +00:00
google-labs-jules[bot]andPR0M3TH3AN 1cd03f3d90 test(cmd-backup): fix unused variable in test
- Remove unused `manifest` variable from destructuring in `test/cmd-backup.test.mjs` to resolve ESLint error.
- Verified fix with `npm run lint`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 18:38:54 +00:00
google-labs-jules[bot]andPR0M3TH3AN da8e816273 fix(test): replace non-standard assert.notMatch with assert.doesNotMatch
- Fixes CI failure in `test/install_dir_validation.test.mjs` where `assert.notMatch` was undefined.
- `assert.doesNotMatch` is the standard Node.js assertion method for negative regex matching.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 18:38:51 +00:00
google-labs-jules[bot]andPR0M3TH3AN 0f6bc97a30 fix(lock): remove unused _getTtl import in src/lib.mjs
- Removed unused `getTtl` import from `src/torch-config.mjs` in `src/lib.mjs` to fix CI lint failure.
- Verified with `npm run lint` and `npm test test/lib.test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 18:38:50 +00:00
google-labs-jules[bot]andPR0M3TH3AN 940bc9ca66 test: add unit tests for cmdProposal
Refactor `src/cmd-proposal.mjs` to use dependency injection for testability.
Add `test/cmd-proposal.test.mjs` to verify all subcommands (`create`, `list`, `apply`, `reject`, `show`) and error handling.
Fix indentation in `src/cmd-proposal.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 18:36:35 +00:00
google-labs-jules[bot]andPR0M3TH3AN 840a79b885 Refactor memory store save logic to use CoalescingWorker
- Replaced manual promise management in `src/services/memory/index.js` with a `CoalescingWorker` class.
- Extracted `performSave` logic into `performSave` function used by the worker (worker function).
- Ensures concurrent calls to `saveMemoryStore` are coalesced into a single pending operation, maintaining data integrity and performance.
- Removed global state variables for promise management.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 18:36:04 +00:00
google-labs-jules[bot]andPR0M3TH3AN 60d213dec7 refactor(memory): implement granular cache invalidation for agents
Replaces aggressive `cache.clear()` with per-agent invalidation in `src/services/memory/index.js` to improve performance.
- Adds `prune(predicate)` to `createMemoryCache`.
- Updates `ingestEvents`, `runPruneCycle`, `pinMemory`, `unpinMemory`, and `markMemoryMerged` to invalidate only the affected agent's cache entries.
- Adds unit test for `prune` in `test/memory-cache.test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 18:35:39 +00:00