Commit Graph
12 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 003e18b93b Fix CI lint error in lock-publisher.mjs
- Ensure `src/lock-publisher.mjs` does not import `randomInt`.
- Clean up test output artifacts.
- Re-verify tests pass locally.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 20:48:15 +00:00
thePR0M3TH3AN 9fef4c4f46 update 2026-02-21 15:16:45 -05: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 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 e96f8d2d9c update 2026-02-14 18:49:28 -05:00
thePR0M3TH3AN 74a4e4d009 Make scheduler memory commands run-scoped and context-aware 2026-02-14 17:55:40 -05:00
thePR0M3TH3AN ab933f8905 Wire scheduler memory policy to real memory services 2026-02-14 17:43:05 -05:00
thePR0M3TH3AN 26b65f273f Add scheduler handoff runner for selected prompts 2026-02-14 17:38:20 -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 d997963ea7 Enforce scheduler memory workflow and verification 2026-02-14 17:05:47 -05:00
thePR0M3TH3AN 579655d1e4 feat: add per-project torch-config for lock and scheduler defaults 2026-02-13 22:05:20 -05:00