Commit Graph
202 Commits
Author SHA1 Message Date
thePR0M3TH3AN 6b5022ac45 update 2026-02-21 15:29:40 -05:00
thePR0M3TH3AN 9fef4c4f46 update 2026-02-21 15:16:45 -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
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
thePR0M3TH3AN cb8ded018a Merge branch 'main' into agents/daily/style-agent-7331917025368212480 2026-02-21 14:40:02 -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 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
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 fb672d380f Merge branch 'main' into fix-torch-lock-commands-3759471574036935483 2026-02-21 14:16:25 -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
thePR0M3TH3AN 79e261d7b2 Merge pull request #402 from PR0M3TH3AN/agents/daily/const-refactor-13160759941082166389
refactor(constants): centralize time and memory constants
2026-02-21 13:21:47 -05:00
thePR0M3TH3AN fbd42889a4 Merge pull request #401 from PR0M3TH3AN/agents/weekly/race-condition-2026-02-21-5109170834766607482
fix(scheduler): resolve relay health and publisher race conditions
2026-02-21 13:19:39 -05:00
thePR0M3TH3AN 6758c8fd10 Merge pull request #400 from PR0M3TH3AN/agents/daily/ci-health-agent-flake-fix-17431605227619250204
fix(test): isolate install_dir_validation tests
2026-02-21 13:19:18 -05:00
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 667da1536b refactor(constants): centralize time and memory constants
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 16:54:12 +00:00
google-labs-jules[bot]andPR0M3TH3AN 2e8bc1a61c fix(scheduler): resolve relay health and publisher race conditions
Executed the weekly race-condition-agent task.
- Fixed WebSocket resource leak in `src/relay-health.mjs` by explicitly closing sockets on timeout.
- Fixed unhandled promise rejection in `src/lock-publisher.mjs` by attaching catch handlers to publish promises.
- Generated `reports/race-condition/weekly-race-condition-report-2026-02-21.md`.
- Updated `task-logs/weekly/` with completion log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 05:10:39 +00:00
google-labs-jules[bot]andPR0M3TH3AN 2430efc256 fix(test): isolate install_dir_validation tests
Refactor test/install_dir_validation.test.mjs to use unique temporary directories for each subtest, eliminating shared state and race conditions that caused flakiness.
Update KNOWN_ISSUES.md to mark the issue as resolved.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 02:12:23 +00: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
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
thePR0M3TH3AN a7ae290af5 update 2026-02-20 16:53:17 -05:00
google-labs-jules[bot]andPR0M3TH3AN 5865a6edc8 fix(torch-lock): resolve circular deps and syntax errors in lock commands
- 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.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 21:50:46 +00: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
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 a9255718cc feat(agent): execute load-test-agent daily run
- Executed load-test-agent in dry-run mode
- Generated load test reports
- Completed memory retrieval and storage workflow
- Verified artifacts and linting
- Published completion lock and task log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 17:14:41 +00: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
thePR0M3TH3AN a7a7679223 update 2026-02-19 23:36:01 -05:00
thePR0M3TH3AN 78a79faf3f update 2026-02-19 23:15:56 -05:00
google-labs-jules[bot]andPR0M3TH3AN 439e08042c docs: update README.md and TORCH.md with scheduler and lock commands
- Added `scheduler:daily` and `scheduler:weekly` usage examples to README.md and TORCH.md.
- Added `lock:complete` and `lock:check:daily` usage examples to README.md and TORCH.md.
- Updated TODO list to reflect completion of documentation alignment.
- Verified script presence and syntax.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 03:52:47 +00:00
thePR0M3TH3AN 5783f995d7 update 2026-02-19 22:22:45 -05:00
google-labs-jules[bot]andPR0M3TH3AN 0b9dfa60ce docs: align README and TORCH.md with package.json scripts
- Added `npm run scheduler:daily` to docs
- Added `npm run scheduler:weekly` to docs
- Added `npm run lock:complete` to docs
- Generated task log and artifacts for docs-alignment-agent run

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 02:35:34 +00:00
thePR0M3TH3AN 91ed0c765f Merge pull request #347 from PR0M3TH3AN/agents/daily/docs-agent-3116770565114843973
docs(scheduler): run docs-agent cycle
2026-02-19 21:15:45 -05:00
google-labs-jules[bot]andPR0M3TH3AN 925ead1523 docs(scheduler): run docs-agent cycle
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 02:15:11 +00:00
thePR0M3TH3AN 0cfb40a410 Merge branch 'main' of https://github.com/PR0M3TH3AN/TORCH 2026-02-19 21:09:43 -05:00
thePR0M3TH3AN cab73c3344 update 2026-02-19 21:09:10 -05:00
thePR0M3TH3AN e7b8049f8b Merge pull request #345 from PR0M3TH3AN/agents/daily/deps-security-agent-2026-02-20-693252216422401941
Daily Scheduler Run: deps-security-agent
2026-02-19 20:54:32 -05:00
thePR0M3TH3AN 2df8b85682 Merge branch 'main' into agents/daily/decompose-agent-refactor-14956609596778737678 2026-02-19 20:54:11 -05:00
google-labs-jules[bot]andPR0M3TH3AN 2cba102998 Run deps-security-agent (daily cadence)
- Audited dependencies (npm audit, npm outdated)
- Generated security report
- Created scheduler run artifacts
- Created completion log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 01:19:41 +00:00
google-labs-jules[bot]andPR0M3TH3AN b8598d1d92 feat: Decompose src/lock-ops.mjs into relay-health-manager.mjs and lock-publisher.mjs
- Extracted `RelayHealthManager` to `src/relay-health-manager.mjs`
- Extracted `LockPublisher` to `src/lock-publisher.mjs`
- Refactored `src/lock-ops.mjs` to import new modules
- Reduced `src/lock-ops.mjs` size significantly (> 500 lines)
- Preserved API compatibility (re-exported `defaultHealthManager`)
- Verified with lint and tests
- Updated `scripts/check-file-size.mjs` report (implicit)

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 00:36:49 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8653521593 [decompose] extract RelayHealthManager and LockPublisher from src/lock-ops.mjs
- Extracted `RelayHealthManager` to `src/relay-health-manager.mjs`
- Extracted `LockPublisher` to `src/lock-publisher.mjs`
- Moved shared utilities to `src/lock-utils.mjs`
- Updated `src/lock-ops.mjs` to import dependencies and re-export public API
- Reduced `src/lock-ops.mjs` from 880 to 152 lines
- Verified with tests (295 passed) and linting

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-19 23:41:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN 916a91b470 chore: run content-audit-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-19 22:35:48 +00:00
thePR0M3TH3AN e74c33a78d Merge pull request #326 from PR0M3TH3AN/agents/daily/torch-garbage-collection-agent-2026-02-19-15853237273456100337
Run torch-garbage-collection-agent daily cycle
2026-02-19 17:19:25 -05:00
thePR0M3TH3AN 86bfec6319 update 2026-02-19 17:05:13 -05:00
google-labs-jules[bot]andPR0M3TH3AN 2174e8bc4d [constants] Refactor 1000 to MS_PER_SECOND
- Extracted MS_PER_SECOND to src/constants.mjs
- Replaced literal 1000 in src/relay-health.mjs, src/utils.mjs, src/lib.mjs, src/lock-ops.mjs
- Updated test/scheduler-lock-failure-schema.contract.test.mjs to copy constants.mjs
- Added task log and artifacts

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-19 21:34:50 +00:00
thePR0M3TH3AN 510e05ab54 update 2026-02-19 16:10:00 -05:00