Commit Graph
376 Commits
Author SHA1 Message Date
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 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
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
google-labs-jules[bot]andPR0M3TH3AN 00e3b1e6a2 feat: add prompt-fixer-agent to automatically resolve safety audit findings
This commit introduces a new agent, `prompt-fixer-agent`, designed to automatically remediate safety findings identified by the `prompt-safety-agent`.

- Added `src/prompts/weekly/prompt-fixer-agent.md`: Defines the agent's mission to parse `artifacts/prompt-safety-audit.md` and inject missing `FAILURE MODES` and `EXIT CRITERIA` sections into flagged agent prompts.
- Updated `src/prompts/roster.json`: Added `prompt-fixer-agent` to the `weekly` roster, scheduled to run after `prompt-safety-agent`.

This agent ensures that all prompts in the repository maintain a high standard of safety and resilience by providing automated fixes for common omissions.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 01:56:42 +00:00
thePR0M3TH3AN 046345d0d5 Merge pull request #157 from PR0M3TH3AN/agents/weekly/prompt-safety-agent-2951116875058077137
Weekly Prompt Safety Audit
2026-02-14 20:48:39 -05:00
google-labs-jules[bot]andPR0M3TH3AN eddfbd7039 Weekly prompt-safety-agent run: Audited 41 prompts
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 01:46:24 +00:00
thePR0M3TH3AN 473533d78e Merge pull request #156 from PR0M3TH3AN/agents/daily/perf-agent-6955602526162456888
chore: run daily perf-agent and fix validation
2026-02-14 20:36:09 -05:00
google-labs-jules[bot]andPR0M3TH3AN eff5f1db81 chore: run daily perf-agent and fix validation
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 01:35:36 +00:00
thePR0M3TH3AN b955c1c256 Merge pull request #155 from PR0M3TH3AN/agents/daily/onboarding-audit-agent-run-10795662537549449689
Scheduler Run: onboarding-audit-agent (Daily)
2026-02-14 20:12:32 -05:00
google-labs-jules[bot]andPR0M3TH3AN e267c5bcf0 docs(scheduler): run onboarding-audit-agent task
- Run onboarding-audit-agent:
  - Simulate clean checkout.
  - Run npm ci (passed).
  - Run npm test (failed due to prompt contract violations).
  - Run npm run lint (passed).
- Generate required run artifacts:
  - src/context/CONTEXT_*.md
  - src/todo/TODO_*.md
  - src/decisions/DECISIONS_*.md
  - src/test_logs/TEST_LOG_*.md
  - docs/agent-handoffs/incidents/INCIDENT_PROMPT-CONTRACT-FAILURES_*.md
- Publish task completion event.
- Generate task log: task-logs/daily/*__onboarding-audit-agent__completed.md.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 01:10:51 +00:00
thePR0M3TH3AN 2aec332a7e Merge pull request #154 from PR0M3TH3AN/codex/add-tests-for-cli-error-rendering
Add scheduler failure rendering snapshots for lock-backend vs prompt-file errors
2026-02-14 20:10:39 -05:00
thePR0M3TH3AN 969b72d3e1 Add scheduler error rendering snapshot coverage 2026-02-14 20:10:26 -05:00
thePR0M3TH3AN b16b4a9246 Merge pull request #153 from PR0M3TH3AN/codex/add-resilience-test-suite-for-lock-acquisition
Add ci-resilience lock acquisition tests for unstable relay scenarios
2026-02-14 20:06:52 -05:00
thePR0M3TH3AN 6259f7f2f5 Add ci-resilience lock acquisition test suite 2026-02-14 20:06:30 -05:00
thePR0M3TH3AN dd95661fc1 Merge pull request #152 from PR0M3TH3AN/codex/create-contract-tests-for-scheduler-failure-schema
Add contract tests for scheduler lock-backend failure frontmatter and canonicalize backend_category
2026-02-14 20:01:50 -05:00