Commit Graph
171 Commits
Author SHA1 Message Date
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
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