Commit Graph
119 Commits
Author SHA1 Message Date
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
thePR0M3TH3AN d44b09e712 Standardize prompt artifact paths and add canonical reference 2026-02-14 16:49:05 -05:00
thePR0M3TH3AN 07ceede552 Normalize KNOWN_ISSUES path in prompts 2026-02-14 16:45:15 -05:00
thePR0M3TH3AN 83413e597f docs(prompts): add shared agent run contract and link all cadence prompts 2026-02-14 16:22:58 -05:00
thePR0M3TH3AN 7d67df97f7 Update docs to use torch-lock entrypoint 2026-02-14 16:20:11 -05:00
thePR0M3TH3AN 8239b41831 docs(prompts): align scheduler update prompt with roster source 2026-02-14 16:17:17 -05:00
thePR0M3TH3AN 5b0cf980e9 Align scheduler tables with roster and add drift check 2026-02-14 16:09:00 -05:00
thePR0M3TH3AN e8ff52cc57 Align scheduler docs to cmdCheck excluded schema 2026-02-14 15:53:18 -05:00
thePR0M3TH3AN 136493b721 Clarify scheduler completion publish flow 2026-02-14 15:46:38 -05:00
thePR0M3TH3AN d1586228be Add memory rollout feature flags and docs 2026-02-14 15:23:51 -05:00
thePR0M3TH3AN 7cef8242a1 Add memory admin CLI hooks and safe telemetry events 2026-02-14 15:15:15 -05:00
thePR0M3TH3AN 5e609fabe8 feat(memory): inject retrieval context into final prompt rendering 2026-02-14 15:09:34 -05:00
thePR0M3TH3AN 3ddd05017a feat(memory): add distributed-safe maintenance scheduler jobs 2026-02-14 15:05:59 -05:00
thePR0M3TH3AN 106154263c Implement memory pruning lifecycle planning and actions 2026-02-14 15:02:49 -05:00
thePR0M3TH3AN 0236958f63 Implement vector-aware memory retrieval and prompt formatter 2026-02-14 14:59:05 -05:00
thePR0M3TH3AN b8d4d2ac82 Add pluggable memory embedder adapter and vector metadata 2026-02-14 14:55:07 -05:00
thePR0M3TH3AN 3665aa0f4f Add memory prompt templates and robust JSON summarization 2026-02-14 14:51:50 -05:00
thePR0M3TH3AN 8e1ff73cbb Implement batched memory ingestion pipeline with dedupe 2026-02-14 14:48:19 -05:00
thePR0M3TH3AN 3c24b29799 Add scoped runtime memory cache with LRU and metrics 2026-02-14 14:44:07 -05:00
thePR0M3TH3AN 99248b5008 Add memory persistence migration and repository adapter methods 2026-02-14 14:41:08 -05:00
thePR0M3TH3AN 5f9b1a270a Add durable memory schema validation in ingest pipeline 2026-02-14 14:37:28 -05:00
thePR0M3TH3AN 9c2524540c Add modular memory service API scaffold 2026-02-14 14:33:23 -05:00
thePR0M3TH3AN cfe7e9ec8e Merge pull request #84 from PR0M3TH3AN/torch-lock-completion-6824629536982484145
feat: add torch-lock complete command for persistent history
2026-02-14 13:52:44 -05:00
google-labs-jules[bot]andPR0M3TH3AN 7a8bab4b1b I have implemented 'torch-lock complete' for persistent task history. This involved adding cmdComplete to src/lib.mjs to handle permanent completion events, updating cmdLock to prevent locking completed tasks, modifying cmdList to show 'done' status, exposing the command in the CLI, and adding the necessary unit tests.
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 18:46:04 +00:00
google-labs-jules[bot]andPR0M3TH3AN 433b81d2d3 feat: implement scheduler ratcheting by excluding completed tasks
- Update `torch-lock check` to scan `task-logs/<cadence>` for completed tasks.
- Add `--log-dir` and `--ignore-logs` flags to `check` command.
- Implement `getIsoWeekStr` utility for robust weekly cadence checking.
- Ensure completed agents are added to the `excluded` list, enabling the scheduler to skip them.
- Add comprehensive tests for log checking and date utilities.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 18:29:20 +00:00
google-labs-jules[bot]andPR0M3TH3AN eb7ce149c7 Package audit scripts and update prompts for consumer repos
- Add `scripts/check-file-size.mjs` and `scripts/check-innerhtml.mjs` to `package.json` files list.
- Update `src/ops.mjs` to copy these scripts to `torch/scripts/` during `init` and `update` commands.
- Update all agent prompts in `src/prompts/` to reference `torch/scripts/` instead of `scripts/`.
- Ensure `torch/scripts/agent/` directory is created.
- Scripts are treated as "evolving" files (preserved on update unless forced).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 18:04:15 +00:00
google-labs-jules[bot]andPR0M3TH3AN 6d072448e3 Fix torch-lock init command and update landing page instructions
- Fix multiple syntax errors in `src/lib.mjs` (redundant declarations, broken loops, missing imports).
- Fix syntax error in `src/dashboard.mjs` (invalid catch block).
- Remove redundant local function definitions in `src/lib.mjs` in favor of imports from `src/torch-config.mjs` and `src/utils.mjs`.
- Update `landing/index.html` installation command to include `npx torch-lock init` step.
- Verify `torch-lock init` works correctly.
- Ensure all tests pass and linting is clean for `src/lib.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 17:45:21 +00:00
thePR0M3TH3AN feb7c37b1f Merge pull request #73 from PR0M3TH3AN/perf/dashboard-async-io-13493420652733485580
⚡ Optimize dashboard static file serving
2026-02-14 12:12:33 -05:00
thePR0M3TH3AN ec31a64736 Merge pull request #62 from PR0M3TH3AN/perf-async-dashboard-io-5891481615082085195
⚡ Replace Blocking Sync I/O in HTTP Request Handler
2026-02-14 12:12:16 -05:00
thePR0M3TH3AN d46aa0b449 Merge branch 'main' into refactor/valid-cadences-7741695179358615025 2026-02-14 12:12:02 -05:00
thePR0M3TH3AN e15ba3fe42 Merge pull request #71 from PR0M3TH3AN/refactor/constants-kind-app-data-17267465416565685977
Refactor magic number 30078 to KIND_APP_DATA constant
2026-02-14 12:11:50 -05:00