diff --git a/torch/package-lock.json b/torch/package-lock.json index 92153451..18eb0a29 100644 --- a/torch/package-lock.json +++ b/torch/package-lock.json @@ -140,7 +140,7 @@ "node_modules/torch-lock": { "version": "0.1.0", "resolved": "https://github.com/PR0M3TH3AN/TORCH/archive/refs/heads/main.tar.gz", - "integrity": "sha512-E/6nV1W0Jgric/4n83u8PfapILLKWHm07/oKnJGnizfDFRO4JSxeLPkTLp8DgaKOZU2S15ksO87n79D2dOjyAw==", + "integrity": "sha512-fyH3Vxe294ZK5ZzYTgfB7rRMpRL7omsyH2lrjf88wUPGw9CnnXNVZ4rwTKaU9NscCDNzijkOY3X7MHwVaNANyQ==", "dependencies": { "nostr-tools": "2.19.4", "ws": "8.19.0" diff --git a/torch/package.json b/torch/package.json index d422047f..90757a99 100644 --- a/torch/package.json +++ b/torch/package.json @@ -1,10 +1,12 @@ { "name": "torch", "version": "1.0.0", - "description": "", + "description": "TORCH Agent Environment", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "lock:check:daily": "torch-lock check --cadence daily", + "lock:lock": "torch-lock lock", + "lock:complete": "torch-lock complete" }, "keywords": [], "author": "", diff --git a/torch/src/prompts/daily/ci-health-agent.md b/torch/src/prompts/daily/ci-health-agent.md new file mode 100644 index 00000000..1ce0b343 --- /dev/null +++ b/torch/src/prompts/daily/ci-health-agent.md @@ -0,0 +1,9 @@ +# CI Health Agent + +This agent is responsible for ensuring the repository is healthy by running tests and linters. + +1. *Run repository checks.* + - Execute `flake8 .` from the root directory to check code style. + - Execute `pytest` from the root directory to run tests. +2. *Report status.* + - Log the output of the checks. diff --git a/torch/src/prompts/roster.json b/torch/src/prompts/roster.json new file mode 100644 index 00000000..ee25987e --- /dev/null +++ b/torch/src/prompts/roster.json @@ -0,0 +1,5 @@ +{ + "daily": [ + "ci-health-agent" + ] +} diff --git a/torch/task-logs/daily/2026-02-17T16-56-00Z__ci-health-agent__failed.md b/torch/task-logs/daily/2026-02-17T16-56-00Z__ci-health-agent__failed.md new file mode 100644 index 00000000..1c024b3a --- /dev/null +++ b/torch/task-logs/daily/2026-02-17T16-56-00Z__ci-health-agent__failed.md @@ -0,0 +1,10 @@ +# CI Health Agent Check Failed + +The repository checks failed during the CI run. + +## Check Failures + +1. **flake8**: Found numerous style violations (E501 line too long, unused imports, etc.). +2. **pytest**: Failed to start due to configuration error (`unrecognized arguments: -n`). + +This indicates the codebase is currently unhealthy or the environment is misconfigured. diff --git a/torch/torch-config.json b/torch/torch-config.json new file mode 100644 index 00000000..c2d37517 --- /dev/null +++ b/torch/torch-config.json @@ -0,0 +1,12 @@ +{ + "scheduler": { + "firstPromptByCadence": { + "daily": "ci-health-agent" + }, + "memoryPolicyByCadence": { + "daily": { + "mode": "optional" + } + } + } +}