Commit Graph
396 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
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 b296303b19 Merge branch 'main' into refactor/relay-list-label-consolidation-6018169095734119060 2026-02-20 16:41:31 -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 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 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
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 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 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
thePR0M3TH3AN 2b8a0c3d0d update 2026-02-20 12:51:17 -05:00
thePR0M3TH3ANandClaude Sonnet 4.6 a8ee3d39ea fix(dashboard): return timingSafeEqual result instead of discarding it
The unequal-length branch of timingSafeCompare called
crypto.timingSafeEqual(paddedA, paddedB) but did not capture the return
value, unconditionally returning false and leaving the timing-safe
comparison as dead code.

Adds a regression test covering shorter, longer, and exact-match
credential lengths to lock in the correct behaviour.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-02-20 11:53:05 -05:00
thePR0M3TH3ANandClaude Sonnet 4.6 8a9080e7c3 fix(memory): close the content gap so agents can actually write and retrieve learnings
- run-selected-prompt.mjs: set SCHEDULER_MEMORY_FILE env var before spawning each agent so
  store.mjs has a well-known path to read from (memory-updates/<ts>__<agent>.md)
- retrieve.mjs: format memories.md using m.summary + date/tags in readable markdown sections
  instead of raw m.content blobs; agents can now scan injected context at a glance
- store.mjs: remove semantically-empty fallback placeholder events that polluted the store
  and degraded retrieval quality; also fix default cadence 'weekly' -> 'daily' to match retrieve
- scheduler-flow.md: replace vague "write insights" instruction with a concrete three-section
  template (Key findings / Patterns / Warnings) and clarify that $SCHEDULER_MEMORY_FILE is
  set by the scheduler automatically

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-02-20 10:51:03 -05:00
google-labs-jules[bot]andPR0M3TH3AN 82e29f3f89 fix(landing): improve agent metadata extraction regex and standardize test-audit-agent header
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 13:07:23 +00:00
thePR0M3TH3AN 206146b78e Merge pull request #365 from PR0M3TH3AN/agents/weekly/prompt-safety-agent-1954565905191419761
feat: Weekly Prompt Safety Audit
2026-02-20 07:48:05 -05:00
thePR0M3TH3AN 45c0e5bbd7 Merge pull request #363 from PR0M3TH3AN/print-scheduler-summary-6512839814829601974
Print Final Run Summary in Scheduler Cycle
2026-02-20 07:47:07 -05:00
google-labs-jules[bot]andPR0M3TH3AN b23b9e4982 feat: Weekly Prompt Safety Audit
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 05:10:15 +00:00
google-labs-jules[bot]andPR0M3TH3AN 9278dadab0 Print final run summary in scheduler cycle and prompts
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 04:50:26 +00:00
google-labs-jules[bot]andPR0M3TH3AN d479519067 feat: add diagnostic utility script
Added features/diagnostic.mjs to help users verify their local TORCH environment.
Includes checks for Node.js version, dependencies, configuration, and connectivity.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 04:48:29 +00:00
thePR0M3TH3AN a7a7679223 update 2026-02-19 23:36:01 -05:00