Commit Graph
31 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN d02fa41079 fix(scheduler): relax prompt validation and correct default lint command
- Update `scripts/agent/run-scheduler-cycle.mjs` to allow prompt files to start with a blockquote (`>`) in addition to a markdown header (`#`), unblocking agents with shared contract headers.
- Fix default validation command from `['npm', 'run', 'lint']` to `['npm run lint']` to prevent `npm` usage errors.
- Include daily task logs demonstrating successful scheduler cycle execution (skipping failed locks and completing `load-test-agent`).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 16:33:37 +00: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 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
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 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 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 969b72d3e1 Add scheduler error rendering snapshot coverage 2026-02-14 20:10:26 -05:00
thePR0M3TH3AN c1d0de071c test: add scheduler lock failure frontmatter contract coverage 2026-02-14 20:01:32 -05:00
thePR0M3TH3AN ccc76d8b51 Add scheduler lock preflight e2e coverage 2026-02-14 19:56:25 -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
google-labs-jules[bot]andPR0M3TH3AN dd27f28f3b feat(ai): add load-test-agent script
- Added `scripts/agent/load-test.mjs` for daily load testing.
- Includes `DRY_RUN` mode for safe simulation.
- Includes real publishing logic using `nostr-tools/relay` and `nostr-tools/pure`.
- Generated sample report in `artifacts/`.
- Updated `task-logs/daily/` with completion status.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 00:01:16 +00: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 9c069f75a6 Add scheduler lock retries for backend failures 2026-02-14 18:29:55 -05:00
thePR0M3TH3AN c38dfe1258 Enrich scheduler lock backend failure logging 2026-02-14 18:23:52 -05:00
thePR0M3TH3AN 827c7038c9 Harden scheduler log candidate selection 2026-02-14 18:10:29 -05:00
thePR0M3TH3AN 909a7f9541 Strengthen run-artifact verification metadata and issue linkage 2026-02-14 18:05:54 -05:00
thePR0M3TH3AN aec210b195 Strengthen run artifact content validation 2026-02-14 17:46:11 -05:00
thePR0M3TH3AN 26b65f273f Add scheduler handoff runner for selected prompts 2026-02-14 17:38:20 -05:00
thePR0M3TH3AN 5e74287a57 Align scheduler flow docs with runtime behavior 2026-02-14 17:28:31 -05:00
thePR0M3TH3AN d997963ea7 Enforce scheduler memory workflow and verification 2026-02-14 17:05:47 -05:00
thePR0M3TH3AN 5221225a1f Add scheduler run artifact compliance gate 2026-02-14 17:01:23 -05:00
thePR0M3TH3AN a48f8743f4 Require scheduler handoff command for valid task execution 2026-02-14 16:58:56 -05:00
thePR0M3TH3AN fce1256200 feat(scheduler): add single-command scheduler cycle runner 2026-02-14 16:51:55 -05:00
google-labs-jules[bot]andPR0M3TH3AN 36cd585fba fuzz-agent: fix parseLockEvent crash on null content
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 08:57:47 +00:00
google-labs-jules[bot]andPR0M3TH3AN 9bea7a6233 feat(agent): frontend-console-debug-agent run (no errors)
- Installed @playwright/test
- Added scripts/agent/debug-frontend.mjs
- Verified dashboard has no console errors
- Logged completion in task-logs/weekly/

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 06:18:32 +00:00