Commit Graph
185 Commits
Author SHA1 Message Date
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 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
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
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 494bb62b99 Merge branch 'main' into agents/daily/log-fixer-agent-2026-02-16-13770463431702119028 2026-02-17 09:20:57 -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 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
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
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
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
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
google-labs-jules[bot]andPR0M3TH3AN 19af4dcba5 perf: visibility-gate dashboard render loop
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 23:09:11 +00:00
google-labs-jules[bot]andPR0M3TH3AN eb1407a8c1 fix(prompts): add missing H1 headers to resolve schema validation failures
- Added H1 headers to 6 daily/weekly agent prompts.
- Verified with `npm run validate:scheduler`.
- Logged execution in `task-logs/daily/`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 22:09:50 +00:00
google-labs-jules[bot]andPR0M3TH3AN 37e556f29d fix(log-fixer): resolve daily agent failures
- Add H1 headers to `innerhtml-migration-agent.md`, `known-issues-agent.md`, and `deps-security-agent.md` to prevent schema validation failures.
- Verify `npm run lint` passes.
- Create scheduler completion log for `log-fixer-agent`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 19:10:07 +00:00
google-labs-jules[bot]andPR0M3TH3AN d23e6ff0b3 Refactor memory scripts and fix configuration for new installs
- Replaced fragile inline Node.js scripts in `torch-config.json` with dedicated modules: `scripts/memory/retrieve.mjs` and `scripts/memory/store.mjs`.
- Updated `src/ops.mjs` initialization logic to dynamically configure `scheduler.memoryPolicyByCadence` with correct paths based on the installation directory.
- Added default memory policy configuration to `torch-config.example.json` to guide users.
- Injected `torch:memory:list` and `torch:memory:inspect` convenience scripts into the host `package.json` during `init`.
- Removed legacy shell scripts (`run-memory-retrieval.sh`, `run-memory-store.sh`).
- Verified memory scripts function correctly and pass linting.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 17:19:55 +00:00
google-labs-jules[bot]andPR0M3TH3AN 5c3a2dbe6f Weekly Agent Run: weekly-synthesis-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 16:30:42 +00:00
google-labs-jules[bot]andPR0M3TH3AN 487081f319 Improve torch init experience with interactive prompts and script injection
- Modified `init` to be interactive, asking for install directory, namespace, and relays.
- Added automatic injection of convenience scripts (`torch:check`, `torch:lock`, etc.) into the host `package.json`.
- Increased default network timeouts (30s query, 15s publish) to reduce failure rate.
- Added visual feedback (logs) during relay connection and querying.
- Refactored `src/ops.mjs` to support flexible installation paths.
- Updated `src/torch-config.mjs` to support config resolution from parent directories (e.g., when running via `npm run --prefix`).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 02:44:48 +00:00
google-labs-jules[bot]andPR0M3TH3AN aff47a7ba6 docs(scheduler): daily run for docs-code-investigator
- Documented `src/lock-ops.mjs` in `docs/src-lock-ops-overview.md`.
- Created required scheduler artifacts (`src/context/`, `src/todo/`, etc.).
- Completed scheduler cycle and updated `task-logs/daily/`.
- Updated `package-lock.json` with dependencies.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 02:17:45 +00:00
google-labs-jules[bot]andPR0M3TH3AN 77df77a1a6 feat: execute daily docs-alignment-agent
- Scheduled docs-alignment-agent
- Retrieved and stored memories
- Verified artifacts: context, todo, decisions, test_logs
- Validated package.json vs README.md claims
- Completed lock and wrote log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 01:23:00 +00:00
google-labs-jules[bot]andPR0M3TH3AN 6d2af25774 fix(init): ensure torch-config.json is created in project root
- Modified `src/ops.mjs` to create `torch-config.json` in `paths.root` instead of `paths.torchDir` during `cmdInit`.
- This aligns the initialization behavior with the documentation (`README.md`) and resolves a discrepancy found by `test/ops.test.mjs`.
- Verified with `npm test`.
- Included `docs-agent` run artifact `src/context/CONTEXT_2026-02-16T00-33-39Z.md`.
- Included `task-logs/daily/2026-02-16T00-35-14Z__docs-agent__completed.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 00:38:44 +00:00
google-labs-jules[bot]andPR0M3TH3AN 3f3f45b13f feat: ensure torch init installs full application package
- Modify `src/ops.mjs` to copy all critical application directories (`src`, `bin`, `dashboard`, `scripts`, etc.) and files (`package.json`, `build.mjs`) to the `torch/` directory during `init` and `update`.
- Update `src/ops.mjs` to generate `torch-config.json` inside the `torch/` directory (if missing) instead of only in the project root, supporting self-contained execution.
- Update `src/roster.mjs` to fallback to checking for `roster.json` in the current working directory, enabling `npm run` commands to work correctly when executed from within the `torch/` directory.
- This allows `torch/` to function as a standalone sub-package within a project, where users can `cd torch`, `npm install`, and `npm run build` as expected.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 00:00:28 +00:00
thePR0M3TH3AN 95b3edf90d Merge pull request #181 from PR0M3TH3AN/agents/daily/decompose-agent-2878969979307720459
[decompose] extract getCompletedAgents from src/lib.mjs
2026-02-15 18:28:21 -05:00
google-labs-jules[bot]andPR0M3TH3AN c0972af7b6 [decompose] extract getCompletedAgents from src/lib.mjs
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 23:27:29 +00:00
google-labs-jules[bot]andPR0M3TH3AN c6428c42c8 Implement persistent JSON memory store and disable embeddings
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 23:18:13 +00:00
thePR0M3TH3AN 777b44f3cd Merge pull request #178 from PR0M3TH3AN/agents/daily/const-refactor-agent-8695390722719857770
Refactor constant in cmd-lock.mjs
2026-02-15 17:42:38 -05:00
thePR0M3TH3AN 118c365022 Merge branch 'main' into feat/nostr-platform-model-info-17811919130475421613 2026-02-15 17:41:19 -05:00
google-labs-jules[bot]andPR0M3TH3AN 703c351ff2 [constants] replace magic number 30078 with KIND_APP_DATA in cmd-lock.mjs
Refactored src/cmd-lock.mjs to use KIND_APP_DATA constant instead of hardcoded 30078.
Added refactor artifacts.
Created task completion log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 22:15:06 +00:00
google-labs-jules[bot]andPR0M3TH3AN 754a1c2ce1 feat: support platform and model info in nostr lock events
This change enables agents to report their execution platform (e.g., Jules, Codex, Goose) and model (e.g., DeepSeek 3.2) in the Nostr lock events.

Key changes:
- Updated `torch-lock` CLI to accept `--platform` and `--model` arguments.
- Implemented `detectPlatform` utility to infer platform from environment variables if not provided.
- Updated `src/lib.mjs` to include these fields in the event content.
- Updated `scripts/agent/run-scheduler-cycle.mjs` to propagate `--model` and `AGENT_MODEL`.
- Updated `dashboard/index.html` to display the model information on the lock card.
- Fixed a regression in `scripts/validate-scheduler-flow-parity.mjs` and `test/scheduler-ratchet.test.mjs` caused by argument string matching.
- Deleted `repro_test.mjs` temporary file.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 20:18:59 +00:00
thePR0M3TH3AN 04bafc92bb Merge pull request #175 from PR0M3TH3AN/agents/daily/ci-health-agent-13877736874465269363
chore: run daily ci-health-agent
2026-02-15 15:05:54 -05:00
google-labs-jules[bot]andPR0M3TH3AN 512a0413c7 feat: truncate logs and inject memory into prompts to reduce token burn
This change implements several optimizations to reduce token consumption and improve agent context:

1.  **Log Truncation**: `scripts/agent/run-scheduler-cycle.mjs` now truncates the echoed output of spawned processes to 20KB per stream (stdout/stderr). This prevents the scheduler agent's context from being flooded with excessive logs from sub-agents.
2.  **Memory Injection**: `torch-config.json`'s `retrieveCommand` has been updated to write retrieved memories to `.scheduler-memory/latest/<cadence>/memories.md`. `scripts/agent/run-selected-prompt.mjs` now checks for this file and injects its content into the agent's prompt, providing immediate context from the memory system.
3.  **CLI Optimization**: The `torch-lock list-memories` command now truncates the `content` field of memories to 200 characters by default. A new `--full` flag has been added to `src/cli-parser.mjs` and `src/lib.mjs` to view the full content when needed.

These changes aim to make the agent process more efficient ("error on the side of caution") and leverage the memory system more effectively.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 19:55:20 +00:00
thePR0M3TH3AN 3156ee0bb5 Merge branch 'main' of https://github.com/PR0M3TH3AN/TORCH 2026-02-15 14:27:20 -05:00
thePR0M3TH3AN c20af61643 making Torch more Goose friendly 2026-02-15 14:27:11 -05:00
google-labs-jules[bot]andPR0M3TH3AN 65988c9ccc chore: run daily ci-health-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 19:22:10 +00:00
thePR0M3TH3AN 9c3dd29100 Merge pull request #172 from PR0M3TH3AN/configurable-hashtag-6349684515883756460
Make lock event hashtag configurable
2026-02-15 14:03:18 -05:00
google-labs-jules[bot]andPR0M3TH3AN 287c33eb9c feat: Run audit-agent daily cycle
- Acquired lock for audit-agent
- Executed memory retrieval
- Ran file size, innerHTML, and lint checks
- Generated run artifacts and summary
- Executed memory storage
- Published completion event
- Documented run in task log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 18:57:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN cbc5054b94 feat: make lock event hashtag configurable via config and env var
- Added `getHashtag` function to `src/torch-config.mjs` to resolve hashtag from `NOSTR_LOCK_HASHTAG` env var, `dashboard.hashtag` config, or default to `${namespace}-agent-lock`.
- Updated `src/lib.mjs` to use `getHashtag()` in `cmdLock` and `cmdComplete` for publishing events.
- Updated `dashboard/index.html` to remove hardcoded `#torch-agent-lock` string and rely on dynamic configuration.
- Updated `src/docs/TORCH.md` and `README.md` to document the new configuration options.
- Verified changes with unit tests and frontend verification script.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 18:54:46 +00:00
google-labs-jules[bot]andPR0M3TH3AN 00ce5af68d chore(scheduler): Run todo-triage-agent daily
Executed todo-triage-agent. No actionable TODOs found.
Created run artifacts:
- task-logs/daily/2026-02-15T18-00-00Z__todo-triage-agent__completed.md
- src/context/CONTEXT_2026-02-15T18-00-00Z.md
- src/todo/TODO_2026-02-15T18-00-00Z.md
- src/decisions/DECISIONS_2026-02-15T18-00-00Z.md
- src/test_logs/TEST_LOG_2026-02-15T18-00-00Z.md
- artifacts/todos.txt

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 18:32:05 +00:00
thePR0M3TH3AN c02ed7fcbe Merge pull request #168 from PR0M3TH3AN/ai/prompt-refactor-gap-analysis-17352577007841519209
feat: Add prompt gap analysis agent and refactor for portability
2026-02-15 12:13:41 -05:00
thePR0M3TH3AN 4c59c942f1 Merge branch 'main' into feature/dashboard-modal-docs-2259273807106788000 2026-02-15 12:12:54 -05:00
google-labs-jules[bot]andPR0M3TH3AN 89049c9690 feat(dashboard): add documentation modal and refactor styles
- Refactor modal CSS from `landing/index.html` to `dashboard/styles.css` for reuse.
- Add "Readme Modal" functionality to `dashboard/index.html`.
- Move "How this works" footer content from dashboard to `src/docs/TORCH.md`.
- Update dashboard "TORCH" link to trigger the modal.
- Verify changes with Playwright script.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 17:05:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN 15b6f4c7da feat: Add prompt gap analysis agent and refactor for portability
- Add `src/prompts/weekly/prompt-gap-analysis-agent.md`
- Update `src/prompts/roster.json` and `src/prompts/weekly-scheduler.md`
- Refactor `src/prompts/daily/torch-garbage-collection-agent.md`
- Refactor `src/prompts/daily/docs-code-investigator.md`
- Refactor `src/prompts/daily/test-audit-agent.md`
- Refactor `src/prompts/weekly/race-condition-agent.md`
- Add `docs/proposals/prompt-packages.md`

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 17:04:40 +00:00
google-labs-jules[bot]andPR0M3TH3AN 41f3775ea9 feat: add pagination to dashboard and fix mjs mime type
- Implemented client-side pagination in `dashboard/index.html` (20 items per page).
- Added pagination controls and CSS utilities in `dashboard/styles.css`.
- Fixed `src/dashboard.mjs` to serve `.mjs` files with `text/javascript` MIME type.
- Verified `npx torch-lock init` functionality (no changes needed to landing page).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 16:55:58 +00:00
thePR0M3TH3AN 24ee371b6a Merge pull request #165 from PR0M3TH3AN/agents/weekly/repo-fit-agent-351778452949790909
Support linux platform in agent runner
2026-02-15 11:36:59 -05:00
google-labs-jules[bot]andPR0M3TH3AN b1eb7f07f0 Run daily test-audit-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 16:26:28 +00:00
google-labs-jules[bot]andPR0M3TH3AN f5e857b3d0 feat: support linux platform in agent runner
- Updated scripts/agent/run-selected-prompt.mjs to support AGENT_PLATFORM=linux.
- Updated src/docs/TORCH.md to document the new platform support.
- Generated weekly task log for repo-fit-agent.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 16:23:37 +00:00
thePR0M3TH3AN 7dbb56745c Merge pull request #164 from PR0M3TH3AN/agents/weekly/refactor-agent/extract-parseargs-17596672849702399316
Extract parseArgs to cli-parser.mjs (refactor-agent)
2026-02-15 11:06:39 -05:00
google-labs-jules[bot]andPR0M3TH3AN dba1d43c94 refactor(core): extract parseArgs to cli-parser.mjs
- Extracted `parseArgs` function from `src/lib.mjs` to `src/cli-parser.mjs`.
- Added unit tests for argument parsing logic in `test/cli-parser.test.mjs`.
- Updated `src/lib.mjs` to import `parseArgs`.
- Fixed roster drift in `src/prompts/weekly-scheduler.md` to match `roster.json`.
- Verified with `npm test` and `npm run lint`.
- Completed weekly scheduler task for `refactor-agent`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 15:49:29 +00:00
google-labs-jules[bot]andPR0M3TH3AN ee9caff76c Daily run: style-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 15:47:20 +00:00
thePR0M3TH3AN 2ff1c36991 Merge pull request #162 from PR0M3TH3AN/fix/race-condition-lock-sort-4493259113401496237
Fix race condition in `cmdLock` sort order
2026-02-15 10:35:37 -05:00