Commit Graph
858 Commits
Author SHA1 Message Date
thePR0M3TH3AN f95d9c2170 Merge pull request #399 from PR0M3TH3AN/agents/daily/audit-agent-13097391574516813780
chore(scheduler): execute daily audit-agent
2026-02-21 13:19:00 -05:00
thePR0M3TH3AN 867e7e0983 Merge pull request #398 from PR0M3TH3AN/agents/daily/torch-garbage-collection-agent-2026-02-21-18045201184454510691
chore(scheduler): run daily torch-garbage-collection-agent
2026-02-21 10:15:15 -05:00
google-labs-jules[bot]andPR0M3TH3AN 79699445bf chore(scheduler): execute daily audit-agent
- Executed audit-agent script for daily cadence
- Generated reports for file size, innerHTML usage, and linting
- Verified run artifacts and updated memory
- Published completion lock

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 01:22:48 +00:00
google-labs-jules[bot]andPR0M3TH3AN c4e6b5dff9 chore(scheduler): run daily torch-garbage-collection-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 00:12:16 +00:00
thePR0M3TH3AN 5f79d94754 Merge pull request #397 from PR0M3TH3AN/agents/daily/todo-triage-agent-run-375090472420526035
chore(daily): execute todo-triage-agent run
2026-02-20 18:53:16 -05:00
thePR0M3TH3AN 1e74ef46c9 Merge pull request #396 from PR0M3TH3AN/agents/daily/test-audit-agent-4467786181786313218
chore(scheduler): execute daily test-audit-agent
2026-02-20 18:52:56 -05:00
thePR0M3TH3AN 4fb859d068 Merge pull request #392 from PR0M3TH3AN/refactor/cmd-remove-cleanup-8506683309823504917
Refactor cmdRemove in src/ops.mjs for improved maintainability
2026-02-20 18:51:45 -05:00
thePR0M3TH3AN fb0b16c3b4 Merge pull request #389 from PR0M3TH3AN/feat/docs-link-validation-999870209451448639
Add broken link validation script for documentation
2026-02-20 18:51:31 -05:00
google-labs-jules[bot]andPR0M3TH3AN a502480e95 chore(daily): execute todo-triage-agent run and fix audit failure log
- Selected todo-triage-agent via round-robin.
- Acquired lock.
- Executed prompt: scanned codebase for TODOs (none actionable found).
- Generated run artifacts (context, decisions, todo, test_logs) and memory updates.
- Documented historical failure: INCIDENT-2026-02-14-AUDIT-MISSING-SCRIPTS in `src/test_logs/TEST_LOG_2026-02-14T06-04-19Z.md` to fix CI failure.
- Completed task successfully.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 23:35:16 +00:00
google-labs-jules[bot]andPR0M3TH3AN 31288dc85d chore(daily): execute todo-triage-agent run
- Selected todo-triage-agent via round-robin.
- Acquired lock.
- Executed prompt: scanned codebase for TODOs.
- Findings: No actionable TODOs found (mostly documentation/test data).
- Generated artifacts: context, decisions, todo, test_logs.
- Updated memory with findings.
- Completed task successfully.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 23:31:32 +00:00
google-labs-jules[bot]andPR0M3TH3AN c4f67cf706 chore(scheduler): execute daily test-audit-agent
- Executed test-audit-agent prompt
- Ran static analysis and flakiness check
- Identified and reported consistent failures in load-test.mjs and smoke-test.mjs
- Updated KNOWN_ISSUES.md
- Created run artifacts (Context, Todo, Decisions, Test Logs)
- Completed lock cycle

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 22:38:47 +00:00
google-labs-jules[bot]andPR0M3TH3AN eb32c839d8 Refactor cmdRemove in src/ops.mjs to improve maintainability
Extracted helper functions identifyRemovalTargets, confirmRemoval, executeRemoval, and cleanupPostRemoval to reduce complexity of cmdRemove.
Fixed JSDoc comments and removed unused parameters.
Verified with existing tests.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 21:55:45 +00:00
google-labs-jules[bot]andPR0M3TH3AN 1a46fd0484 feat(docs): add broken link validation script
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 21:53:25 +00:00
thePR0M3TH3AN a7ae290af5 update 2026-02-20 16:53:17 -05:00
thePR0M3TH3AN 8d43fc1be8 Merge pull request #376 from PR0M3TH3AN/perf/optimize-embedder-norms-8957795496330689334
⚡ Optimize vector similarity with precomputed norms
2026-02-20 16:41:51 -05:00
thePR0M3TH3AN 10d2faea54 Merge pull request #379 from PR0M3TH3AN/refactor/relay-list-label-consolidation-6018169095734119060
🧹 Consolidate duplicate `relayListLabel` utility
2026-02-20 16:41:38 -05:00
thePR0M3TH3AN b296303b19 Merge branch 'main' into refactor/relay-list-label-consolidation-6018169095734119060 2026-02-20 16:41:31 -05:00
thePR0M3TH3AN 9b760ab9d5 Merge pull request #377 from PR0M3TH3AN/refactor/lock-ops-reduction-3810095324988153600
Refactor lock-ops and lock-publisher for file size reduction
2026-02-20 16:40:59 -05:00
thePR0M3TH3AN 2d4753a6cb Merge branch 'main' into refactor/lock-ops-reduction-3810095324988153600 2026-02-20 16:40:51 -05:00
thePR0M3TH3AN 2e9f3c9b90 Merge pull request #370 from PR0M3TH3AN/content-audit-todo-update-14936563416122295499
Update content-audit-agent todo list
2026-02-20 16:40:23 -05:00
thePR0M3TH3AN 524da8bce1 Merge pull request #372 from PR0M3TH3AN/audit-agent-lint-validation-15236647932747711276
chore: execute lint validation and update todo
2026-02-20 16:39:32 -05:00
thePR0M3TH3AN f1f530b511 Merge pull request #384 from PR0M3TH3AN/agents/daily/protocol-research-agent-2026-02-20-5682371825284810708
Daily Run: protocol-research-agent
2026-02-20 16:38:20 -05:00
thePR0M3TH3AN 5cbeedff62 Merge pull request #383 from PR0M3TH3AN/agents/daily/perf-agent-9015175649553565373
Daily perf-agent execution: Baseline establishment
2026-02-20 16:37:36 -05:00
thePR0M3TH3AN b1710e7d6c Merge pull request #382 from PR0M3TH3AN/agents/daily/onboarding-audit-agent-2026-02-20-15073734139589950533
run(daily): onboarding-audit-agent execution 2026-02-20
2026-02-20 16:37:11 -05:00
thePR0M3TH3AN 02c40c6deb Merge pull request #378 from PR0M3TH3AN/docs/update-package-scripts-9263284519736398390
Update documentation to reflect available npm scripts
2026-02-20 16:36:58 -05:00
thePR0M3TH3AN 0c28573264 Merge pull request #375 from PR0M3TH3AN/jules-verify-tests-pass-5372241009488585580
Verify tests pass and complete decomposition of lock-ops
2026-02-20 16:36:45 -05:00
thePR0M3TH3AN 278ca815f1 Merge pull request #380 from PR0M3TH3AN/refactor/main-handlers-12560453909019178975
Refactor main switch statement into command handlers
2026-02-20 16:36:19 -05:00
thePR0M3TH3AN 244b118550 Merge pull request #373 from PR0M3TH3AN/refactor/merge-relay-list-7360990203888330524
Refactor: Consolidate mergeRelayList into utils.mjs
2026-02-20 16:36:06 -05:00
thePR0M3TH3AN 756806a99e Merge branch 'main' into refactor/merge-relay-list-7360990203888330524 2026-02-20 16:35:59 -05:00
thePR0M3TH3AN 7e01b951a8 Merge pull request #381 from PR0M3TH3AN/memory-save-perf-6430625137963819127
⚡ Optimize memory store persistence with throttling and atomic writes
2026-02-20 16:35:38 -05:00
thePR0M3TH3AN c6c25e60e2 Merge pull request #374 from PR0M3TH3AN/refactor/consolidate-with-timeout-3248602754567091205
Consolidate `withTimeout` utility to `src/utils.mjs`
2026-02-20 16:35:19 -05:00
thePR0M3TH3AN 9223d55e8c Merge pull request #371 from PR0M3TH3AN/refactor/governance-apply-proposal-17916899384602246938
Refactor applyProposal to avoid redundant proposal fetch
2026-02-20 16:34:54 -05:00
thePR0M3TH3AN 13a789bcf5 Merge pull request #368 from PR0M3TH3AN/jules/docs-alignment-13667682581514782020
Docs Alignment: Script Updates
2026-02-20 16:32:40 -05:00
google-labs-jules[bot]andPR0M3TH3AN 826a18aa48 chore(protocol): update inventory and add report
- Update nostr-tools version in PROTOCOL_INVENTORY.md
- Create protocol report for 2026-02-20
- Create daily run artifacts and memory updates
- Create completion log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 21:24:06 +00:00
google-labs-jules[bot]andPR0M3TH3AN 0927372c82 feat(perf): establish baseline and identify async patterns
- Scanned codebase for `setInterval`, `Promise.all`, and other async patterns.
- Generated `reports/performance/hits-2026-02-20.json`.
- Identified potential unbounded concurrency in `src/services/memory`.
- Created daily performance report.
- Updated run artifacts and memory.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 19:36:55 +00:00
google-labs-jules[bot]andPR0M3TH3AN be0fc06af7 run(daily): onboarding-audit-agent execution 2026-02-20
- Executed onboarding-audit-agent prompt.
- Verified onboarding instructions in README.md (clean checkout, build, test, lint).
- Generated run artifacts in src/context/, src/todo/, src/decisions/, src/test_logs/.
- Retrieved and stored agent memory.
- Created final task log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:36:03 +00:00
google-labs-jules[bot]andPR0M3TH3AN 98d7bdb3ba perf(memory): optimize save operations with throttling and atomic writes
- Implemented throttling in `performSave` to limit disk writes to max 1 per second.
- Refactored `updateMemoryUsage` to use non-blocking (fire-and-forget) save calls, eliminating latency for memory reads.
- Added atomic write strategy using unique temporary files and `fs.rename` to prevent data corruption.
- Verified with benchmarks: `getRelevantMemories` latency reduced from ~100ms to ~30ms for 10k items.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:25:45 +00:00
google-labs-jules[bot]andPR0M3TH3AN 5dc16040fb Fix unused 'test' import in main-dispatch.test.mjs
- Removed unused `test` import from `node:test` in `test/main-dispatch.test.mjs` to resolve ESLint error.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:18:20 +00:00
google-labs-jules[bot]andPR0M3TH3AN b644aa6db8 Fix: Move withTimeout tests to isolated file to avoid MockTimer interference
Moved unit tests for `withTimeout` from `test/utils.test.mjs` to `test/utils-async.test.mjs`.
This prevents potential interference from `MockTimers` enabled in `test/utils.test.mjs` which could affect `setTimeout` behavior in async tests.
Increased timeout margins in `withTimeout` tests for better reliability in CI.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:15:43 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8c417264e5 Refactor main switch statement into command handlers
- Extracted command logic from `src/lib.mjs` `main` function into `COMMAND_HANDLERS` dispatch map.
- Simplified `main` function to perform argument parsing and dispatching.
- Added `test/main-dispatch.test.mjs` to verify dispatch logic and error handling.
- Ensured no regressions in CLI behavior.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:15:30 +00:00
google-labs-jules[bot]andPR0M3TH3AN 59e96ae21a Refactor: Consolidate duplicate relayListLabel utility
Consolidated the duplicate `relayListLabel` function from `src/lock-ops.mjs` and `src/lock-publisher.mjs` into `src/utils.mjs`.

- Moved `relayListLabel` to `src/utils.mjs`.
- Updated `src/lock-ops.mjs` and `src/lock-publisher.mjs` to import it.
- Updated `src/lock-utils.mjs` to re-export it from `src/utils.mjs` to maintain backward compatibility.
- Added unit tests in `test/utils.test.mjs`.
- Verified all tests pass.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:12:58 +00:00
google-labs-jules[bot]andPR0M3TH3AN 1253513010 docs: update npm scripts list in README.md and TORCH.md
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:11:34 +00:00
google-labs-jules[bot]andPR0M3TH3AN 19a73145b6 Refactor: Extract lock utils and error classifier to reduce file size
- Extracted `PUBLISH_ERROR_CODES`, `PUBLISH_FAILURE_CATEGORIES`, and `classifyPublishError` to `src/lock-error-classifier.mjs`.
- Moved `secureRandom` to `src/lock-utils.mjs`.
- Updated `src/lock-publisher.mjs` and `src/lock-ops.mjs` to import shared utilities from `src/lock-utils.mjs`.
- Reduced `src/lock-publisher.mjs` size significantly (approx. 100 lines) and verified `src/lock-ops.mjs` remains small.
- Verified that tests pass and file sizes are reduced.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:11:08 +00:00
google-labs-jules[bot]andPR0M3TH3AN 823d296b4a perf(memory): optimize cosineSimilarity with precomputed norms
- Precompute vector norms during `upsertVector` in `InMemoryEmbedderAdapter`.
- Compute query vector norm once per query.
- Update `cosineSimilarity` to accept precomputed norms, avoiding redundant calculations.
- Optimize `cosineSimilarity` loop to iterate only up to `Math.min(left.length, right.length)` and remove redundant casts.
- Achieved ~27% improvement in query time (57ms vs 78ms for 50 queries against 2000 vectors).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:10:50 +00:00
google-labs-jules[bot]andPR0M3TH3AN 2cd2168803 Verify tests pass and complete decomposition of lock-ops
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:10:24 +00:00
google-labs-jules[bot]andPR0M3TH3AN 04abfa9c24 Refactor: Consolidate withTimeout utility into src/utils.mjs
Moved the duplicate `withTimeout` function from `src/lock-ops.mjs`, `src/lock-publisher.mjs`, `src/lock-utils.mjs`, and `src/relay-health.mjs` to a single definition in `src/utils.mjs`.

Updated all references to import from `src/utils.mjs`. `src/lock-utils.mjs` re-exports `withTimeout` for backward compatibility.

Added unit tests for `withTimeout` in `test/utils.test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:09:26 +00:00
google-labs-jules[bot]andPR0M3TH3AN f54c540070 Refactor: consolidate mergeRelayList into utils.mjs
- Moved `mergeRelayList` from `src/lock-ops.mjs` and `src/lock-publisher.mjs` to `src/utils.mjs`.
- Updated imports in `src/lock-ops.mjs` and `src/lock-publisher.mjs`.
- Added unit tests for `mergeRelayList` in `test/utils.test.mjs`.
- Restored `torch-config-test.json` which was deleted by the test suite.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:09:01 +00:00
google-labs-jules[bot]andPR0M3TH3AN 1e1b4ecadc chore: execute lint validation and update todo
- Restore dependencies using `npm ci`
- Run `npm run lint` and verify exit code 0
- Update src/todo/TODO_2026-02-19T20-00-00Z.md

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:08:53 +00:00
google-labs-jules[bot]andPR0M3TH3AN 258da844a6 refactor(governance): optimize applyProposal to reuse proposal object in validation
Updates `validateProposal` to accept either a proposal ID or a proposal object.
Updates `applyProposal` to pass the already-fetched proposal object to `validateProposal`,
eliminating a redundant file system read. This improves efficiency and code health.
Tests were verified to ensure no regression.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:07:22 +00:00
google-labs-jules[bot]andPR0M3TH3AN 12923f290e Update content-audit-agent todo list
Marks pending items in `src/todo/TODO_2026-02-19T22-29-56Z.md` as completed since they were flagged as N/A by the agent. This ensures the todo list accurately reflects the run status.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 18:05:59 +00:00