Commit Graph
388 Commits
Author SHA1 Message Date
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
thePR0M3TH3AN adedaf3f82 Merge pull request #179 from PR0M3TH3AN/feat/persistent-memory-3891432153822957529
Persistent Memory Store Implementation
2026-02-15 18:21:20 -05: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 07ce4ed4b4 Merge pull request #177 from PR0M3TH3AN/feat/nostr-platform-model-info-17811919130475421613
Add platform and model support to Nostr lock events
2026-02-15 17:41:27 -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
thePR0M3TH3AN a79e508e69 Merge pull request #176 from PR0M3TH3AN/reduce-token-burn-memory-logs-6666148646855452421
Reduce token burn via log truncation and memory injection
2026-02-15 15:05:37 -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 7ba7a95bae Merge pull request #174 from PR0M3TH3AN/agents/weekly/smoke-agent-5242811211812357470
feat: implement smoke-agent harness and run cycle
2026-02-15 14:03:32 -05: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
thePR0M3TH3AN f6def2068d Merge pull request #173 from PR0M3TH3AN/agents/daily/audit-agent-2026-02-15-773211296456281930
Run daily audit-agent cycle
2026-02-15 14:03:02 -05:00
google-labs-jules[bot]andPR0M3TH3AN 64f22cd741 feat(scheduler): implement smoke-agent and complete weekly run
- Added `scripts/agent/smoke-test.mjs` for automated smoke testing.
- Executed smoke test against `wss://relay.damus.io`.
- Verified event publication and retrieval.
- Completed scheduler cycle for `smoke-agent`.
- Added completion log `task-logs/weekly/2026-02-15T19-00-40Z__smoke-agent__completed.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 19:01:58 +00: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
thePR0M3TH3AN f279e9ae95 Goose + Torch
tried to get goose working with torch but it looks like there is a issue with Goose and its hermit editor.
2026-02-15 13:34:42 -05:00
thePR0M3TH3AN ca19b3c38b Merge pull request #171 from PR0M3TH3AN/agents/daily/todo-triage-agent-run-6732910964804131466
chore(scheduler): Run todo-triage-agent daily
2026-02-15 13:32:47 -05:00
thePR0M3TH3AN 469757e93e Merge pull request #170 from PR0M3TH3AN/jules/fix-pagination-styling-877329716786825054
Fix Dashboard Pagination Styling and Layout
2026-02-15 13:32:08 -05: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
google-labs-jules[bot]andPR0M3TH3AN 01b26c155f Fix dashboard pagination styling and layout by adding missing CSS classes and styles
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 17:54:06 +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 fda223c009 Merge pull request #169 from PR0M3TH3AN/feature/dashboard-modal-docs-2259273807106788000
Add documentation modal to dashboard and refactor styles
2026-02-15 12:13:03 -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
thePR0M3TH3AN baea51ee6d Merge pull request #167 from PR0M3TH3AN/feat-dashboard-pagination-2359642947256356216
Add pagination to dashboard and fix .mjs serving
2026-02-15 11:57:57 -05: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
thePR0M3TH3AN e443548ed4 Merge pull request #166 from PR0M3TH3AN/agents/daily/test-audit-agent-14669282661095161033
Run daily test-audit-agent
2026-02-15 11:36:46 -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
thePR0M3TH3AN f50d34a2c2 Merge pull request #163 from PR0M3TH3AN/agents/daily/style-agent-run-14983861860408870169
Daily run: style-agent
2026-02-15 11:06:05 -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
google-labs-jules[bot]andPR0M3TH3AN 1d4097483c Fix race condition in cmdLock sort order
- Add deterministic tie-breaker (eventId) for lock events with identical timestamps in `src/lib.mjs`.
- Add regression tests in `test/lib.test.mjs` verifying win/loss conditions.
- Create weekly race condition report and run artifacts.
- Mark `race-condition-agent` task as completed.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 15:31:28 +00:00
thePR0M3TH3AN 098be47d12 Merge pull request #161 from PR0M3TH3AN/agents/daily/scheduler-update-agent-12489270681046195950
docs(prompts): sync scheduler rosters
2026-02-15 10:30:31 -05:00
google-labs-jules[bot]andPR0M3TH3AN e0245e289d docs(prompts): sync scheduler rosters
- Update weekly-scheduler.md to include prompt-fixer-agent
- Generate run artifacts for scheduler-update-agent

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 15:28:22 +00:00
thePR0M3TH3AN fddd9ce494 Merge pull request #160 from PR0M3TH3AN/agents/weekly/prompt-fixer-agent-11447881649532663983
Weekly Run: prompt-fixer-agent
2026-02-15 10:12:07 -05:00
thePR0M3TH3AN 093e22b08a Merge pull request #159 from PR0M3TH3AN/agents/daily/protocol-research-agent-5254279223439212465
chore: run daily protocol-research-agent
2026-02-15 09:59:13 -05:00
google-labs-jules[bot]andPR0M3TH3AN 0b28e4cfde run(weekly/prompt-fixer-agent): automate prompt safety fixes
- Selected `prompt-fixer-agent` from weekly roster.
- Parsed `artifacts/prompt-safety-audit.md` identifying 24 agents needing fixes.
- Applied `FAILURE MODES` and no-op exit criteria to all 24 agent prompts.
- Generated required run artifacts (Context, Todo, Decisions, Test Log).
- Verified artifacts and linting.
- Published completion lock.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 05:25:28 +00:00
google-labs-jules[bot]andPR0M3TH3AN fcfc9d035b chore: run daily protocol-research-agent
- Execute protocol-research-agent logic
- Create PROTOCOL_INVENTORY.md
- Create protocol-report-2026-02-15.md
- Create run artifacts (context, todo, decisions, test_log)
- Perform memory retrieval and storage
- Create task log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 02:49:42 +00:00
thePR0M3TH3AN 7a232e5dc7 Merge pull request #158 from PR0M3TH3AN/add-prompt-fixer-agent-13041002321748970895
Add prompt-fixer-agent
2026-02-14 21:07:37 -05:00