Commit Graph
35 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 4e244dd847 chore(ai): doc src/ops.mjs (docs-code-investigator)
- Added JSDoc to src/ops.mjs
- Created docs/ops-overview.md
- Updated run artifacts

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-22 18:23:40 +00:00
thePR0M3TH3AN 9fef4c4f46 update 2026-02-21 15:16:45 -05:00
thePR0M3TH3AN 49411889c0 Merge pull request #422 from PR0M3TH3AN/claude/plan-agent-architecture-QF47j
Add plan-agent, proposal-triage-agent, and builder-agent to close idea-to-implementation gap
2026-02-21 15:16:25 -05:00
Claude 33ea996b04 feat(agents): add plan-agent pipeline to close idea-to-implementation gap
Introduces three new weekly agents that form a triage→plan→build pipeline:

- proposal-triage-agent: evaluates proposals, dead ends, and coverage gaps;
  produces prioritized backlog in src/backlog/BACKLOG.md
- plan-agent: creates concrete implementation plans from top backlog items
  in src/plans/PLAN-*.md
- builder-agent: executes approved plans, makes code changes, verifies
  acceptance criteria

Also includes:
- Architecture proposal document in docs/proposals/
- Seeded initial backlog with 11 items from diagnosed dead ends
- Updated roster.json and weekly-scheduler.md (24 weekly agents)
- All three validators pass (prompt-contract, scheduler-roster, flow-parity)

https://claude.ai/code/session_01FLP7ibXd5QPG517g1kYCHL
2026-02-21 20:13:35 +00:00
google-labs-jules[bot]andPR0M3TH3AN 4e01a33cc2 fix(lock): fix potential duplicate imports in lock-publisher
- Rewrote `src/lock-publisher.mjs` to ensure clean imports and no duplicate declarations of `withTimeout`.
- This addresses the lint error `Identifier 'withTimeout' has already been declared` seen in CI.
- Verified lint passes locally.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:54:06 +00:00
google-labs-jules[bot]andPR0M3TH3AN e84f16905a chore(scheduler): Execute daily style-agent and fix lock-utils export
- Fix missing `mergeRelayList` export in `src/lock-utils.mjs`.
- Execute `style-agent` workflow.
- Update `KNOWN_ISSUES.md` with missing `format` script issue.
- Add incident report `docs/agent-handoffs/incidents/2026-02-21-missing-format-script.md`.
- Add run artifacts (Context, Todo, Decisions, Test Logs, Task Log).
- Add memory update.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:39:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN c0c5ac5473 fix(torch-lock): re-apply fixes for circular deps and syntax errors
- Moved `withTimeout` implementation to `src/lock-utils.mjs` and exported it correctly.
- Removed duplicate local definitions of `withTimeout`, `mergeRelayList`, and `secureRandom` in `src/lock-ops.mjs` and `src/lock-publisher.mjs`.
- Fixed imports in `src/lock-ops.mjs`, `src/lock-publisher.mjs`, and `src/relay-health.mjs` to use `src/lock-utils.mjs` consistently.
- Updated `test/utils.test.mjs` and `test/utils-async.test.mjs` to fix broken imports and test definitions.
- Verified `npm run lock:complete` and `npm run scheduler:daily` execute correctly.
- Updated `src/todo/TODO_2026-02-20T03-00-00Z.md` to mark verification task as completed.
- Verified `src/relay-health.mjs` does not use `MINUTE_MS` locally, despite mysterious CI error. Confirmed imports are correct.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 19:23:48 +00:00
google-labs-jules[bot]andPR0M3TH3AN a502480e95 chore(daily): execute todo-triage-agent run and fix audit failure log
- Selected todo-triage-agent via round-robin.
- Acquired lock.
- Executed prompt: scanned codebase for TODOs (none actionable found).
- Generated run artifacts (context, decisions, todo, test_logs) and memory updates.
- Documented historical failure: INCIDENT-2026-02-14-AUDIT-MISSING-SCRIPTS in `src/test_logs/TEST_LOG_2026-02-14T06-04-19Z.md` to fix CI failure.
- Completed task successfully.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 23:35:16 +00:00
thePR0M3TH3AN 2b8a0c3d0d update 2026-02-20 12:51:17 -05:00
thePR0M3TH3AN a7a7679223 update 2026-02-19 23:36:01 -05:00
thePR0M3TH3AN 5783f995d7 update 2026-02-19 22:22:45 -05:00
Claude be5ec21d5c feat(governance): add prompt versioning, rollback --list, and state backup
- governance/index.js: archive filenames now include ISO timestamp for
  deterministic sorting (<base>_<ts>_<hash>.md); write .meta.json sidecar
  on every archive with proposalId, author, reason, and archivedAt
- governance/index.js: add listPromptVersions(target) — returns archived
  versions for a prompt sorted newest-first with sidecar metadata surfaced
- cmd-rollback.mjs: add --list flag to list available versions without
  restoring (delegates to listPromptVersions)
- cli-parser.mjs: add --list and --output flags
- lib.mjs: pass list flag to cmdRollback; add backup command dispatch
- cmd-backup.mjs: new torch-lock backup command — snapshots
  .scheduler-memory/memory-store.json and scheduler run state to
  .torch/backups/<timestamp>/; supports --output override and --list
- docs/prompt-versioning.md: comprehensive guide to the full
  proposal → apply → list-versions → rollback workflow, state backup
  and restore procedure, and storage location reference
- test/governance.test.mjs: 7 scenario-based tests (SCN-proposal-create,
  SCN-proposal-list, SCN-proposal-reject, SCN-archive-naming,
  SCN-version-list, SCN-rollback-latest, SCN-rollback-hash)

https://claude.ai/code/session_01Ndq2D72Kp77BYo4owD63uY
2026-02-20 02:27:57 +00:00
thePR0M3TH3AN 158026bdb4 Merge pull request #346 from PR0M3TH3AN/claude/add-torch-removal-command-keFx5
Add cmdRemove command to completely uninstall TORCH from projects
2026-02-19 21:09:54 -05:00
thePR0M3TH3AN cab73c3344 update 2026-02-19 21:09:10 -05:00
Claude 7984c7de66 feat: add torch-lock remove command for complete TORCH uninstallation
Users who installed TORCH via `npm install <tarball> && npx torch-lock init`
had no built-in way to cleanly remove it. This adds a `remove` command that
detects and removes all TORCH artifacts: the torch/ directory, config files,
runtime directories (.torch/, .scheduler-memory/, task-logs/), governance
proposals, host package.json scripts, and the npm package itself.

- Add cmdRemove() in src/ops.mjs with detection, preview, confirmation, and cleanup
- Wire up `remove` command in CLI dispatcher (src/lib.mjs)
- Add TORCH_HOST_SCRIPTS constant in constants.mjs for shared script key list
- Add docs/removal.md with full manual removal instructions
- Add removal section to README.md
- Add 7 scenario tests in test/ops-remove.test.mjs

https://claude.ai/code/session_011Snrxu3iZGLtJ9pnFSajpM
2026-02-20 01:59:30 +00:00
thePR0M3TH3AN 510e05ab54 update 2026-02-19 16:10:00 -05:00
Claude 639ad6877d chore: code quality, CI/CD, and DX improvements
Phase 3 — Code Quality:
- Deduplicate nowUnix() in lock-ops.mjs (import from utils.mjs)
- Promote ESLint no-unused-vars to error, fix all 46 violations
- Remove dead code: unused imports, variables, and catch bindings
- Add /* global marked */ for CDN-loaded library in dashboard

Phase 4 — CI/CD:
- Add Node.js version matrix (22, 23) to CI workflow
- Add npm audit security scan step to CI
- Add innerHTML usage check to CI pipeline
- Enable Dependabot for npm and GitHub Actions dependencies
- Create PR template

Phase 5 — Developer Experience:
- Create .env.example documenting all environment variables
- Expand CONTRIBUTING.md with commit conventions, agent/prompt
  creation guide, architecture overview, and test integrity
- Add system architecture diagram with Mermaid (docs/architecture/)

https://claude.ai/code/session_01GfwUNbgeMgXreFDbsNQMsS
2026-02-19 21:03:30 +00:00
google-labs-jules[bot]andPR0M3TH3AN ab99339311 docs: add TORCH evolution concept and roadmap
Adds a detailed architectural opinion/RFC in `docs/TORCH_EVOLUTION_CONCEPT.md` outlining the transition from a linear scheduler to a node-based workflow orchestrator. This document includes recommendations for UI (React Flow), integrations (OpenClaw, ClaudeCode CLI), and a phased roadmap.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-19 19:43:09 +00:00
Claude 7813cfeb8c docs(proposals): add node-based prompt editor proposal
Outlines a phased approach to evolving TORCH into a node-based prompt
engineering editor: metadata extraction (Phase 0), YAML frontmatter
schema (Phase 1), Cytoscape.js graph visualization (Phase 2), and
future interactive editing via governance proposals (Phase 3+).

https://claude.ai/code/session_01CWPJzAfHW6KRHkp4tqSosw
2026-02-19 18:53:20 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8455c99dfc chore(ai): document src/lock-ops.mjs
- Added JSDoc to exported functions and classes in src/lock-ops.mjs
- Added inline comments to complex logic areas
- Created docs/lock-ops-overview.md
- Created task log for daily docs-code-investigator agent

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-18 18:19:28 +00:00
google-labs-jules[bot]andPR0M3TH3AN 268248b4eb feat: add hosted dashboard configuration and distribution plan
Added a settings modal to the dashboard (index.html) to allow configuration of hashtag, namespace, and relays via URL query parameters and localStorage. This enables the dashboard to be hosted as a static site and used by any project.

Also added `docs/architecture/distribution-plan.md` outlining the strategy for NPM, Binary, and Hosted Dashboard distribution.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 03:26:33 +00:00
google-labs-jules[bot]andPR0M3TH3AN bccc2797a0 chore(daily): run onboarding-audit-agent
- Executed onboarding-audit-agent.
- Verified npm ci, build, lint.
- Recorded npm test timeout in incident report.
- Updated KNOWN_ISSUES.md.
- Created task completion log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 21:23:58 +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
thePR0M3TH3AN f279e9ae95 Goose + Torch
tried to get goose working with torch but it looks like there is a issue with Goose and its hermit editor.
2026-02-15 13:34:42 -05: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 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 1e97118e8b Add relay health preflight job and scheduler deferral handling 2026-02-14 19:35:56 -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
google-labs-jules[bot]andPR0M3TH3AN d0761110bf chore(scheduler): run pr-review-agent
- Executed `pr-review-agent` logic.
- Generated PR review artifacts (pr-check.txt, lint.txt, test.txt, summary.md).
- Documented limitations regarding GitHub API access in sandbox.
- Created completion log `task-logs/weekly/2026-02-14T19-24-10Z__pr-review-agent__completed.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 19:26:13 +00:00
thePR0M3TH3AN 9bf04a3a5b Standardize install docs on GitHub tarball distribution 2026-02-14 12:29:41 -05: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 ce453a6454 Refactor agent docs to repository-agnostic workflow 2026-02-13 22:34:57 -05:00
thePR0M3TH3AN e541053fee Refactor agent docs to be fully repo-agnostic 2026-02-13 22:30:42 -05:00
thePR0M3TH3AN f1bf8af96a Refine agent onboarding and generic handoff guidance 2026-02-13 22:20:32 -05:00
thePR0M3TH3AN 8d5e7e0220 docs: add generic agent onboarding and handoff guidance 2026-02-13 22:16:48 -05:00