Commit Graph
149 Commits
Author SHA1 Message Date
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
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
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
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
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
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
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
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 aad60b795a test: add publish retry matrix coverage for lock backend 2026-02-14 19:47:32 -05:00
thePR0M3TH3AN 874747de91 Classify scheduler failures and document lock remediation 2026-02-14 19:42:03 -05:00
thePR0M3TH3AN 1e97118e8b Add relay health preflight job and scheduler deferral handling 2026-02-14 19:35:56 -05:00
thePR0M3TH3AN 46198a500e Improve lock publish diagnostics and scheduler failure summaries 2026-02-14 19:30:00 -05:00
thePR0M3TH3AN 9aad0d933d Add lock deferral policy for scheduler backend failures 2026-02-14 19:23:37 -05:00
thePR0M3TH3AN 57ba0fe4f4 Improve lock relay health ranking and quarantine handling 2026-02-14 19:15:31 -05:00
thePR0M3TH3AN f22bcfb713 Add bounded retry logic for lock publish quorum 2026-02-14 19:08:53 -05:00
thePR0M3TH3AN 84d3e7eded Harden lock backend config validation and fallback behavior 2026-02-14 18:48:21 -05:00
thePR0M3TH3AN ecb26dfa99 Improve scheduler lock observability and reliability reporting 2026-02-14 18:42:52 -05:00
thePR0M3TH3AN bc51e2f2e8 Add scheduler relay health preflight gate 2026-02-14 18:36:01 -05:00
thePR0M3TH3AN c38dfe1258 Enrich scheduler lock backend failure logging 2026-02-14 18:23:52 -05:00
thePR0M3TH3AN 4831d64533 Merge pull request #134 from PR0M3TH3AN/jules/init-random-namespace-13799195171516890011
feat: generate random namespace on init
2026-02-14 18:19:44 -05:00
google-labs-jules[bot]andPR0M3TH3AN 0f3fd3209f feat: random namespace generation in init
This commit updates the `npx torch-lock init` command to automatically generate a `torch-config.json` file if it doesn't already exist. The generated configuration includes a randomized `nostrLock.namespace` (e.g., `torch-a1b2c3d4`) to ensure unique discovery topics for each installation, preventing message collisions across different repositories.

- Modified `src/ops.mjs` to import `crypto` and implement the config generation logic in `cmdInit`.
- Added a test case in `test/ops.test.mjs` to verify the random namespace generation.
- Uses `torch-config.example.json` as a template.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 23:19:25 +00:00
thePR0M3TH3AN dc2f68c79e Merge pull request #129 from PR0M3TH3AN/agents/daily/innerhtml-migration-8152833633844970948
feat(security): migrate dashboard innerHTML to safe DOM APIs
2026-02-14 18:08:57 -05:00
google-labs-jules[bot]andPR0M3TH3AN b92f0efd38 feat(security): migrate dashboard innerHTML to safe DOM APIs
- Replace innerHTML with document.createElement and replaceChildren in dashboard/index.html
- Add dashboard/domUtils.js for safe HTML escaping and element creation
- Add context, decisions, and test logs
- Update daily task logs

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 23:05:24 +00:00
thePR0M3TH3AN 317169cb31 Align scheduler prompts to scheduler-owned completion model 2026-02-14 17:59:10 -05:00
thePR0M3TH3AN 45194e7282 Merge pull request #117 from PR0M3TH3AN/agents/daily/docs-code-investigator-16801522210257607958
chore(ai): document src/lib.mjs
2026-02-14 17:54:55 -05:00
thePR0M3TH3AN ab933f8905 Wire scheduler memory policy to real memory services 2026-02-14 17:43:05 -05:00
thePR0M3TH3AN 5e74287a57 Align scheduler flow docs with runtime behavior 2026-02-14 17:28:31 -05:00
thePR0M3TH3AN 0076f3eb1d Normalize daily/weekly prompt contract and add validator 2026-02-14 17:24:49 -05:00
thePR0M3TH3AN 4b6ed0b7e5 Add scheduler handoff commands for daily and weekly cadences 2026-02-14 17:22:16 -05:00
thePR0M3TH3AN c74f81c915 Enforce scheduler memory evidence for daily and weekly 2026-02-14 17:19:22 -05:00
thePR0M3TH3AN 711f2bc62f docs(prompts): fix canonical artifact paths and lint invalid refs 2026-02-14 17:10:17 -05:00
google-labs-jules[bot]andPR0M3TH3AN 426b3221b5 chore(ai): document src/lib.mjs
- Added JSDoc to all exported functions in src/lib.mjs
- Added detailed flow comments for cmdLock and cmdComplete
- Created docs/lib-overview.md with high-level architectural documentation
- Created src/context/CONTEXT_2026-02-14T21-30-00Z.md
- Updated task-logs/daily/ with completion record

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 22:09:48 +00:00
thePR0M3TH3AN 8f34803b11 Align scheduler flow docs with automation behavior 2026-02-14 17:07:56 -05:00
thePR0M3TH3AN d997963ea7 Enforce scheduler memory workflow and verification 2026-02-14 17:05:47 -05:00
thePR0M3TH3AN bdcc82c889 Clarify scheduler failure flow before lock completion 2026-02-14 16:53:59 -05:00