Commit Graph
100 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 758d3c3c56 Refactor ensureDir to remove redundant existence check
- Remove explicit `fs.existsSync` check in `ensureDir`.
- Rely on `fs.mkdirSync(dir, { recursive: true })` idempotency.
- Verified with existing tests in `test/ops.test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 14:13:58 +00:00
google-labs-jules[bot]andPR0M3TH3AN eee6dfa09f Refactor cmdInit and cmdUpdate to be synchronous
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 14:12:20 +00:00
thePR0M3TH3AN 695adb6dc9 Merge pull request #59 from PR0M3TH3AN/add-prompt-maintenance-agent-1170306418559251314
Add prompt-maintenance-agent and clean up obsolete agents
2026-02-14 08:57:33 -05:00
google-labs-jules[bot]andPR0M3TH3AN b044570f72 ⚡ optimize: replace blocking sync I/O in dashboard request handler
Converted the dashboard HTTP request handler to an async function and replaced synchronous `fs.existsSync` and `fs.statSync` calls with non-blocking `fs.promises.stat`. This improves server responsiveness and concurrency by ensuring the event loop is not blocked during file system checks.

Also added robust error handling to the asynchronous handler to prevent unhandled promise rejections and ensure consistent 500 responses on internal errors.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 13:56:15 +00:00
google-labs-jules[bot]andPR0M3TH3AN 983ad0627b 🧹 improve observability by adding console.debug to empty catch blocks
Replaced empty catch blocks in `loadCanonicalRoster` and `parseLockEvent`
with `console.debug` statements that log the error message. This
improves observability of failures while maintaining the graceful
fallback behavior.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 13:55:21 +00:00
google-labs-jules[bot]andPR0M3TH3AN c275b452be security: bind dashboard server to 127.0.0.1
Explicitly bind the dashboard server to the local loopback interface
to prevent external access. This addresses a vulnerability where
the server was binding to all network interfaces by default.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 13:52:27 +00:00
thePR0M3TH3AN e67d8441a4 Merge pull request #58 from PR0M3TH3AN/agents/daily/decompose-agent-v1-14520720754219938139
[decompose] Extract modules from src/lib.mjs
2026-02-14 08:51:26 -05:00
thePR0M3TH3AN 23ad1adafb Merge pull request #57 from PR0M3TH3AN/agents/weekly/perf-deepdive-agent-11478179249338404241
perf: parallelize daily/weekly lock queries in list command
2026-02-14 08:51:08 -05:00
google-labs-jules[bot]andPR0M3TH3AN c63a4d6ea9 feat: add prompt-maintenance-agent and remove obsolete agents
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 13:25:56 +00:00
google-labs-jules[bot]andPR0M3TH3AN 581dc3484e [decompose] extract modules from src/lib.mjs
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 13:18:07 +00:00
google-labs-jules[bot]andPR0M3TH3AN 9716fe3812 perf: parallelize daily/weekly lock queries in list command
- Modified `src/lib.mjs` to execute `queryLocks` for all cadences in parallel.
- Added `scripts/perf-benchmark.mjs` for measuring CLI performance.
- Added `weekly-perf-report-2026-02-14.md` with baseline and verification data.
- Added `task-logs/weekly/2026-02-14T13-14-38Z__perf-deepdive-agent__completed.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 13:17:27 +00:00
thePR0M3TH3AN 0969642ccc Merge pull request #56 from PR0M3TH3AN/torch-config-tests-10463068599140780508
🧪 Add unit tests for src/torch-config.mjs
2026-02-14 08:11:56 -05:00
google-labs-jules[bot]andPR0M3TH3AN 647724bd5b 🧪 Add unit tests for src/torch-config.mjs and refactor for testability
- Extract parseTorchConfig for better isolation in tests.
- Add _resetTorchConfigCache for deterministic unit testing.
- Implement comprehensive tests in test/torch-config.test.mjs covering:
  - Path resolution with env var support.
  - Normalization of cadence and status.
  - Roster parsing and filtering.
  - Error handling for malformed config files.
  - Caching behavior.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 13:11:46 +00:00
google-labs-jules[bot]andPR0M3TH3AN 1d81e9f629 docs: daily content audit (no content found)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 13:05:57 +00:00
thePR0M3TH3AN c731f2b09d Merge pull request #53 from PR0M3TH3AN/agents/weekly/fuzz-agent-1863848784432453944
fuzz-agent: fix parseLockEvent crash on null content
2026-02-14 07:51:03 -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 d165c06640 feat: extract DEFAULT_DASHBOARD_PORT and RACE_CHECK_DELAY_MS to src/constants.mjs
- Created src/constants.mjs
- Updated src/lib.mjs to use constants
- Added execution artifacts and completed log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 07:33:51 +00:00
google-labs-jules[bot]andPR0M3TH3AN b0381b8c39 feat: add init and update commands for user-space configuration
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 07:21:05 +00:00
thePR0M3TH3AN 05d266f423 Merge pull request #47 from PR0M3TH3AN/refactor/package-lock-cli-5466133525514174614
Refactor torch-lock into an installable NPM library and CLI
2026-02-14 01:42:23 -05:00
google-labs-jules[bot]andPR0M3TH3AN 35092b3d5a Refactor torch-lock into an installable NPM library and CLI
- Rename `src/nostr-lock.mjs` to `src/lib.mjs` and export core functions.
- Create `bin/torch-lock.mjs` as the CLI entry point.
- Implement `dashboard` command in `src/lib.mjs` to serve the dashboard using Node.js.
- Update `package.json` to configure `bin`, `main`, and `files` for NPM packaging.
- Create `torch-config.example.json` as a template for consumers.
- Update tests and README.md to reflect the new structure.
- Exclude task-specific artifacts (logs, context) from the package while retaining prompts and docs.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 06:41:49 +00:00
thePR0M3TH3AN f7c56fe6f9 Merge pull request #46 from PR0M3TH3AN/chore/update-agent-prompts-policy-read-9423933926600717575
Standardize agent prompts to read policy files
2026-02-14 01:32:44 -05:00
google-labs-jules[bot]andPR0M3TH3AN f50c31c884 chore: update agent prompts to read AGENTS.md and CLAUDE.md
- Added "Read `AGENTS.md` and `CLAUDE.md`" instruction to the Preflight/Startup/Checklist sections of 8 agent prompts:
  - src/prompts/daily/audit-agent.md
  - src/prompts/daily/const-refactor-agent.md
  - src/prompts/daily/content-audit-agent.md
  - src/prompts/daily/decompose-agent.md
  - src/prompts/daily/deps-security-agent.md
  - src/prompts/daily/docs-code-investigator.md
  - src/prompts/daily/innerhtml-migration-agent.md
  - src/prompts/daily/perf-agent.md
  - src/prompts/daily/protocol-research-agent.md
  - src/prompts/daily/test-audit-agent.md
  - src/prompts/daily/torch-garbage-collection-agent.md
  - src/prompts/weekly/feature-proposer-agent.md

This ensures all agents are aware of repository policies, including KNOWN_ISSUES.md and src/issues usage.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 06:32:19 +00:00
thePR0M3TH3AN c2b5863382 Merge pull request #40 from PR0M3TH3AN/agents/daily/audit-agent-1241543002109151294
Audit Agent Run: Failed due to missing scripts
2026-02-14 01:11:59 -05:00
google-labs-jules[bot]andPR0M3TH3AN 966d8ed290 Audit Agent Run: Failed due to missing scripts
- Attempted to run audit-agent.
- Failed because `scripts/check-file-size.mjs`, `scripts/check-innerhtml.mjs`, and `npm run lint` are missing.
- Created `artifacts/audit/2026-02-14/summary.md` documenting the failure.
- Created `task-logs/daily/2026-02-14T06-04-19Z__audit-agent__failed.md`.
- Added execution context in `src/context/`, `src/todo/`, `src/decisions/`, `src/test_logs/`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 06:08:12 +00:00
thePR0M3TH3AN 9891e9e632 Merge pull request #37 from PR0M3TH3AN/feat/prompt-safety-agent-16135565872336823268
Add prompt-safety-agent to weekly roster
2026-02-14 01:05:53 -05:00
thePR0M3TH3AN ae90caa39d Merge pull request #38 from PR0M3TH3AN/feat/scheduler-pause-config-12863176069734636551
Add scheduler pause configuration
2026-02-14 01:05:15 -05:00
google-labs-jules[bot]andPR0M3TH3AN 27c30f769a feat: add scheduler pause configuration
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 06:01:25 +00:00
google-labs-jules[bot]andPR0M3TH3AN a09c2e4d7a feat: add prompt-safety-agent to weekly roster
- Create `src/prompts/weekly/prompt-safety-agent.md` to audit other prompts for failure modes.
- Add `prompt-safety-agent` to `src/prompts/roster.json` in the weekly schedule.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 06:00:57 +00:00
thePR0M3TH3AN 3124cd33e9 Merge pull request #36 from PR0M3TH3AN/feat/ui-ux-agent-16440965442601196161
Add UI/UX and Marketing Agent to Weekly Roster
2026-02-14 00:52:15 -05:00
google-labs-jules[bot]andPR0M3TH3AN 32596be91d feat(agents): add ui-ux-agent to weekly roster
- Added `src/prompts/weekly/ui-ux-agent.md` to define the agent's role, mission, and workflow.
- Updated `src/prompts/roster.json` to include `ui-ux-agent` in the weekly schedule.

This agent is responsible for improving web design, accessibility, marketing copy, and maintaining style guides.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 05:48:38 +00:00
google-labs-jules[bot]andPR0M3TH3AN 2a2b95d534 feat: add feature-proposer-agent to weekly roster
This agent analyzes the repository and proposes new, self-contained features
as single files in a `features/` directory, aimed at incrementally adding
value to the project.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 05:46:21 +00:00
google-labs-jules[bot]andPR0M3TH3AN fe3069c516 feat(agents): add log-fixer-agent to daily roster
Add a new agent prompt `log-fixer-agent.md` to `src/prompts/daily/` and
register it in `src/prompts/roster.json`. This agent is responsible for
monitoring task logs for failures and attempting to automatically fix
underlying errors (syntax, dependencies, tests) or creating issues for
complex problems.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 05:31:34 +00:00
google-labs-jules[bot]andPR0M3TH3AN 44919f2ca3 chore(scheduler): run daily test-audit-agent
- Added test script and initial smoke tests
- Generated daily audit report
- Updated scheduler log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 04:59:15 +00:00
thePR0M3TH3AN f86354566f Merge pull request #18 from PR0M3TH3AN/agents/daily/style-agent-run-15212313260693097114
Daily Scheduler: style-agent run
2026-02-13 22:51:20 -05:00
google-labs-jules[bot]andPR0M3TH3AN 106553602f chore(scheduler): run style-agent daily task
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 03:51:07 +00:00
google-labs-jules[bot]andPR0M3TH3AN 161924613c docs(agents): sync scheduler rosters with prompt directory
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 03:48:26 +00:00
thePR0M3TH3AN cd1cd4bdca docs(prompts): add torch garbage collection daily agent 2026-02-13 22:37:26 -05:00
thePR0M3TH3AN ce453a6454 Refactor agent docs to repository-agnostic workflow 2026-02-13 22:34:57 -05:00
thePR0M3TH3AN ea9c75da79 update 2026-02-13 22:31:26 -05:00
thePR0M3TH3AN 246f275141 Add skills folder and weekly repo-fit prompt 2026-02-13 22:28:05 -05:00
thePR0M3TH3AN f0e025886c update 2026-02-13 22:17:38 -05:00
thePR0M3TH3AN 579655d1e4 feat: add per-project torch-config for lock and scheduler defaults 2026-02-13 22:05:20 -05:00
thePR0M3TH3AN aca8ca0e42 docs(scheduler): define deterministic roster selection algorithm 2026-02-13 21:55:37 -05:00
thePR0M3TH3AN 75094a4520 Align lock roster with scheduler prompts 2026-02-13 21:51:50 -05:00
thePR0M3TH3AN 2e945c41f4 Clarify scheduler log-directory bootstrap and first-run behavior 2026-02-13 21:47:32 -05:00
thePR0M3TH3AN acd19ebc80 Make scheduler policy-read step conditional 2026-02-13 21:45:35 -05:00
thePR0M3TH3AN 1bde691c96 refactor(prompts): generalize scheduled agent prompts and rosters 2026-02-13 21:41:13 -05:00
thePR0M3TH3AN beabdd1a63 update 2026-02-13 21:35:03 -05:00
thePR0M3TH3AN 4fbdd1ac71 docs: align lock examples with default documentation-agent 2026-02-13 21:30:25 -05:00
thePR0M3TH3AN 67c8a17a03 updated with files 2026-02-13 20:35:03 -05:00