Commit Graph
476 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 171836d2ac fix: restrict dashboard file access to allowed directories
This patch addresses a security vulnerability where the dashboard server could serve any file from the package root.

Changes:
- Implemented an allowlist in `src/dashboard.mjs` to restrict file access to:
  - `dashboard/`
  - `assets/`
  - `src/docs/`
  - `torch-config.json`
- Added `test/dashboard-security.test.mjs` to verify the fix and prevent regressions.

The fix ensures that sensitive files like `package.json` or source code cannot be accessed via the dashboard server.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 17:35:32 +00:00
thePR0M3TH3AN 4d11b2b710 Merge pull request #224 from PR0M3TH3AN/jules-fix-dashboard-auth-11280121515374886398-56017a2b
🔒 Add Authentication and Local Host Binding to Dashboard
2026-02-17 12:24:47 -05:00
google-labs-jules[bot]andPR0M3TH3AN 456bc2df18 feat(security): add authentication and host binding to dashboard
This commit addresses the missing authentication vulnerability in the
dashboard server.

Changes:
- Added Basic Authentication support via TORCH_DASHBOARD_AUTH env var
  or dashboard.auth config field.
- Defaulted dashboard host binding to 127.0.0.1 for better security.
- Added --host CLI argument to allow overriding the bind address.
- Used crypto.timingSafeEqual for secure credential comparison.
- Fixed a potential crash when parsing malformed Authorization headers.
- Added comprehensive unit tests for dashboard authentication.
- Updated documentation in README.md and torch-config.example.json.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 17:24:33 +00:00
thePR0M3TH3AN 0d1417666c Merge pull request #223 from PR0M3TH3AN/perf-find-last-optimization-8140799722290244091
⚡ optimize lock failure reason summarization with findLast
2026-02-17 12:24:18 -05:00
google-labs-jules[bot]andPR0M3TH3AN fa4c9ca175 perf: optimize lock failure reason summarization
Replace inefficient `[...events].reverse().find()` with `events.findLast()`.
This avoids a shallow copy of the array and an in-place reverse,
improving performance from O(N) space/time to O(1) space and O(N) time
(where N is the number of events searched).

In benchmarks with 100,000 events:
- Element near the end: 99.9% improvement (~0.8ms vs ~950ms)
- Element at the beginning: ~42% improvement (~145ms vs ~250ms)

Node.js v18.6.0+ is required for `findLast`, which is supported in the
current environment (v22.22.0).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 17:11:16 +00:00
thePR0M3TH3AN 3ff9e25464 Merge pull request #222 from PR0M3TH3AN/test-memory-formatter-3246489614731328152
🧪 add unit tests for memory formatter
2026-02-17 12:11:03 -05:00
google-labs-jules[bot]andPR0M3TH3AN 20ba1567d8 test: add unit tests for memory formatter
- Added `test/memory-formatter.test.mjs` with comprehensive unit tests for:
  - `estimateTokenCount`
  - `formatMemoryBlock`
  - `formatMemoriesForPrompt`
  - `renderPromptWithMemoryContext`
- Verified all tests pass and no regressions in related tests.
- Addressed testing gap in `src/services/memory/formatter.js`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 17:10:52 +00:00
thePR0M3TH3AN fd441addb8 Merge pull request #221 from PR0M3TH3AN/refactor-ops-duplication-13791385305147113834
🧹 refactor duplicated copying logic in src/ops.mjs
2026-02-17 12:10:30 -05:00
google-labs-jules[bot]andPR0M3TH3AN a437ddd9f7 chore(ai): refactor duplicated copying logic in src/ops.mjs
- Extracted `syncAppDirectories` and `syncAppFiles` helper functions.
- Updated `cmdInit` and `cmdUpdate` to use the new helpers.
- Improved `cmdInit` to throw an Error instead of warning when the target directory is not empty and not forced.
- Fixed hanging tests in `test/ops.test.mjs` by providing `MOCK_CONFIG`.
- Updated tests to verify strict directory check in `cmdInit`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 17:09:39 +00:00
thePR0M3TH3AN 2fb545f5e7 Merge pull request #218 from PR0M3TH3AN/agents/weekly/feature-proposer-agent-2026-02-17-4294973300536847645
feat: implement log-summary utility as feature-proposer-agent
2026-02-17 12:09:27 -05:00
thePR0M3TH3AN e54cb45540 Merge branch 'main' into agents/weekly/feature-proposer-agent-2026-02-17-4294973300536847645 2026-02-17 12:09:20 -05:00
thePR0M3TH3AN 3d1ba0633a Merge pull request #219 from PR0M3TH3AN/daily-scheduler-run-14087225636286121848
Daily Scheduler Run: torch-garbage-collection-agent
2026-02-17 12:07:32 -05:00
google-labs-jules[bot]andPR0M3TH3AN ab1ef666d4 feat(scheduler): execute daily cycle for torch-garbage-collection-agent
- Selected torch-garbage-collection-agent (others excluded/locked)
- Executed garbage collection (no stale files found)
- Updated memory and artifacts
- Published completion lock event
- Created task log entry

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 16:43:59 +00:00
google-labs-jules[bot]andPR0M3TH3AN 2ed1ae85a9 feat: implement log-summary utility as feature-proposer-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 16:41:10 +00:00
thePR0M3TH3AN 5196f264cb Merge pull request #217 from PR0M3TH3AN/fix-test-audit-agent-timeout-3786484628019216618
Fix test-audit-agent timeout by isolating unit tests for flakiness checks
2026-02-17 11:25:36 -05:00
google-labs-jules[bot]andPR0M3TH3AN f9a7c0eea6 chore(scheduler): optimize test-audit-agent flakiness check
- Updated `src/prompts/daily/test-audit-agent.md` to instruct the agent to run only unit tests during flakiness detection.
- Explicitly excluded composite scripts (e.g. `npm test` with lint/build) and slow integration/E2E tests from the repeated test loop.
- This prevents timeouts caused by running the full test suite (including network-dependent tests) multiple times.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 16:16:46 +00:00
thePR0M3TH3AN ce9751c3e4 Merge pull request #216 from PR0M3TH3AN/jules-memory-conflict-fix-1735324100334813480
Resolve memory-update.md merge conflicts with unique file generation
2026-02-17 10:20:20 -05:00
google-labs-jules[bot]andPR0M3TH3AN 2a39713189 feat(scheduler): generate unique memory update files per run to avoid merge conflicts
- Modified `scripts/agent/run-scheduler-cycle.mjs` to generate a unique `memory-updates/<timestamp>__<agent>.md` path and pass it via `SCHEDULER_MEMORY_FILE` env var.
- Updated `scripts/memory/store.mjs` to prioritize `SCHEDULER_MEMORY_FILE` for ingestion.
- Updated `src/prompts/scheduler-flow.md` to instruct agents to write to the unique memory file.
- Updated `src/prompts/daily/torch-garbage-collection-agent.md` to include `memory-updates/*.md` in the cleanup scope.
- Moved existing `memory-update.md` to `memory-updates/legacy-memory-update-<timestamp>.md` to clear the root.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 15:19:52 +00:00
thePR0M3TH3AN 5704eec127 Merge pull request #215 from PR0M3TH3AN/feat/offline-bundle-7151517603269259215
feat: Add Offline Bundle to Landing Page
2026-02-17 10:10:02 -05:00
google-labs-jules[bot]andPR0M3TH3AN 691b24d518 feat: Add Offline Bundle to Landing Page
- Modified build.mjs to run npm pack and move tarball to dist/
- Updated landing/index.html with download link and instructions
- Updated TORCH.md with Offline & Air-Gapped Installation guide

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 15:01:48 +00:00
thePR0M3TH3AN b8827be83c Merge pull request #213 from PR0M3TH3AN/ai/dead-code-20260217-8092661183000207269
Weekly dead-code-agent execution
2026-02-17 09:41:05 -05:00
google-labs-jules[bot]andPR0M3TH3AN 825d596a59 Weekly dead-code-agent execution: removed scripts/fix-duplication.mjs and src/services/memory/db-adapter.js
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 14:33:14 +00:00
thePR0M3TH3AN 199c34648b Merge pull request #199 from PR0M3TH3AN/agents/daily/log-fixer-agent-2026-02-16-13770463431702119028
fix(prompts): add missing H1 headers to resolve schema validation failures
2026-02-17 09:21:06 -05:00
thePR0M3TH3AN 494bb62b99 Merge branch 'main' into agents/daily/log-fixer-agent-2026-02-16-13770463431702119028 2026-02-17 09:20:57 -05:00
thePR0M3TH3AN 872f3862db Merge pull request #212 from PR0M3TH3AN/agents/weekly/changelog-agent-2026-02-17-11314629234598955243
Weekly Changelog Agent Run (2026-02-17)
2026-02-17 00:08:48 -05:00
google-labs-jules[bot]andPR0M3TH3AN e35ee4a8c8 docs(ai): weekly changelog draft
- Generated weekly changelog draft in `releases/draft-2026-02-17.md`.
- Updated scheduler artifacts and memory.
- Completed weekly `changelog-agent` run.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 05:08:03 +00:00
thePR0M3TH3AN edcd18c35d Merge pull request #211 from PR0M3TH3AN/agents/weekly/bug-reproducer-agent-repro-test-timeout-16134062700196056924
Weekly Scheduler: Bug Reproducer Agent (npm test timeout)
2026-02-16 23:20:47 -05:00
thePR0M3TH3AN d41d3bf17d Merge branch 'main' into agents/weekly/bug-reproducer-agent-repro-test-timeout-16134062700196056924 2026-02-16 23:20:41 -05:00
thePR0M3TH3AN 3676e9fa1e Merge pull request #210 from PR0M3TH3AN/agents/daily/style-agent-12837780720589567168
Scheduler Run: style-agent (daily)
2026-02-16 23:19:52 -05:00
google-labs-jules[bot]andPR0M3TH3AN 96d882554e test: reproduce npm test timeout issue
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 04:12:47 +00:00
google-labs-jules[bot]andPR0M3TH3AN ac8001cd51 chore(scheduler): complete style-agent run
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 04:09:15 +00:00
thePR0M3TH3AN 7dc8b29d3c Merge pull request #209 from PR0M3TH3AN/fix-dashboard-build-and-docs-18141773019241628402
Fix dashboard build failure and missing documentation
2026-02-16 22:55:43 -05:00
google-labs-jules[bot]andPR0M3TH3AN 5f35dde296 Fix dashboard build failure and missing documentation
- Updated `build.mjs` to correctly source `TORCH.md` and `docs/` from the project root instead of the non-existent `src/docs/`.
- Ensured `TORCH.md` is copied to `dist/src/docs/TORCH.md` as expected by the dashboard's fetch logic.
- Added `test/build_verification.test.mjs` to prevent regressions by verifying the presence of critical build artifacts (`TORCH.md`, assets, dashboard).
- Verified dashboard functionality (logos, settings modal) using a temporary Playwright script.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 03:53:55 +00:00
thePR0M3TH3AN 57ab57fb97 Merge pull request #208 from PR0M3TH3AN/hosted-dashboard-config-560167481677552649
Enable Hosted Dashboard Configuration
2026-02-16 22:30:18 -05:00
google-labs-jules[bot]andPR0M3TH3AN 268248b4eb feat: add hosted dashboard configuration and distribution plan
Added a settings modal to the dashboard (index.html) to allow configuration of hashtag, namespace, and relays via URL query parameters and localStorage. This enables the dashboard to be hosted as a static site and used by any project.

Also added `docs/architecture/distribution-plan.md` outlining the strategy for NPM, Binary, and Hosted Dashboard distribution.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 03:26:33 +00:00
thePR0M3TH3AN 90e9ba0335 Merge pull request #207 from PR0M3TH3AN/landing-mermaid-cleanup-8200137835703682912
Remove Mermaid diagram from landing page
2026-02-16 22:19:26 -05:00
google-labs-jules[bot]andPR0M3TH3AN 6425f573fd Remove Mermaid diagram section from landing page
Removes the "Autonomous Improvement Cycle" section, including the HTML block, Mermaid.js script import, and associated CSS styles, to simplify the landing page.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 03:18:28 +00:00
thePR0M3TH3AN 158c1391c6 Merge pull request #206 from PR0M3TH3AN/consolidate-agent-docs-17477044144168368963
Consolidate AGENTS.md and CLAUDE.md into TORCH.md for embedded use
2026-02-16 22:13:51 -05:00
google-labs-jules[bot]andPR0M3TH3AN 8b5cec4890 Consolidate agent docs into TORCH.md and update installer
- Merged AGENTS.md, CLAUDE.md, and src/docs/TORCH.md into a single TORCH.md in the root.
- Updated src/ops.mjs to copy TORCH.md during init/update and correctly transform path references.
- Updated src/prompts/META_PROMPTS.md and src/prompts/scheduler-flow.md to reference TORCH.md.
- Deleted obsolete AGENTS.md, CLAUDE.md, and src/docs/TORCH.md.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 03:11:28 +00:00
thePR0M3TH3AN 1d8af21365 Merge pull request #205 from PR0M3TH3AN/jules/enable-memory-persistence-15629193374441614132
Enable persistence for Torch agent memory system
2026-02-16 22:01:50 -05:00
google-labs-jules[bot]andPR0M3TH3AN 6313c08125 Enable persistence for Torch agent memory system
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 03:00:28 +00:00
thePR0M3TH3AN 6d39847605 Merge pull request #204 from PR0M3TH3AN/feature/memory-usability-9220386318970928486
Make memory system usable by agents via file-based I/O
2026-02-16 21:52:24 -05:00
google-labs-jules[bot]andPR0M3TH3AN 44884cc0c0 Make memory system usable by agents via file-based I/O
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 02:50:46 +00:00
thePR0M3TH3AN a384548663 Merge pull request #203 from PR0M3TH3AN/agents/daily/scheduler-update-agent-15114842836276120562
Daily Scheduler Update Agent Execution
2026-02-16 21:21:44 -05:00
thePR0M3TH3AN db01b8c850 Merge pull request #202 from PR0M3TH3AN/agents/daily/protocol-research-2026-02-17-5505397974901637019
chore(daily): execute protocol-research-agent
2026-02-16 21:21:15 -05:00
google-labs-jules[bot]andPR0M3TH3AN 58c4f14d57 docs(prompts): sync roster.json and scheduler rosters
- Updated roster.json based on prompt directory scan.
- Regenerated daily and weekly scheduler markdown tables.
- Added run artifacts and task log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 02:10:29 +00:00
google-labs-jules[bot]andPR0M3TH3AN 639fd6bccc chore(daily): execute protocol-research-agent
- Updated PROTOCOL_INVENTORY.md with NIP-40, NIP-78, and Kind 27235 details.
- Created protocol-report-2026-02-17.md.
- Verified system health with unit tests.
- Completed scheduler cycle (lock, memory, log).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 01:09:57 +00:00
thePR0M3TH3AN c035f6994d Merge pull request #201 from PR0M3TH3AN/agents/daily/perf-agent-2026-02-17-15937880158330257401
chore(scheduler): execute daily perf-agent cycle
2026-02-16 19:29:18 -05:00
thePR0M3TH3AN 60502677e2 Merge pull request #200 from PR0M3TH3AN/agents/daily/perf-agent-4572387306970148005
perf: visibility-gate dashboard render loop
2026-02-16 19:28:37 -05:00
google-labs-jules[bot]andPR0M3TH3AN 2df15cb585 chore(scheduler): execute daily perf-agent cycle
Executed the daily perf-agent cycle.
- Acquired lock for perf-agent.
- Executed memory retrieval.
- Generated context, todo, decisions, test_logs, and perf report artifacts.
- Executed memory storage.
- Verified artifacts.
- Completed lock and generated task log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 00:09:26 +00:00