Merge branch 'main' into agents/daily/perf-agent-run-6774989560835046882

This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-25 10:44:17 -05:00
commit dbbacc9b00
158 files changed
+28045 -3284

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,10 @@
---
agent: perf-agent
cadence: daily
run-start: 2026-02-23T18:18:24Z
---
# Test Log
**Command:** `grep -rE "setInterval|setTimeout|requestAnimationFrame|requestIdleCallback|Promise\.allSettled|Promise\.all|Promise\.any|Promise\.race|new Worker|Worker\(|postMessage\(|getDmDecryptWorkerQueueSize|decryptDmInWorker|new WebTorrent|WebTorrent|torrent|magnet|torrentHash|magnetValidators|integrationClient\.pool|publishEventToRelays|pool\.list|queueSignEvent|relayManager|authService|hydrateFromStorage|document\.hidden|visibilitychange" src/`
**Result:** Analysis pending.
@@ -0,0 +1,297 @@
# Test Log: Onboarding Audit Agent
- Agent: onboarding-audit-agent
- Cadence: daily
- Run Start: 2026-02-24T00:28:14Z
- Prompt: src/prompts/daily/onboarding-audit-agent.md
## Execution Log
**Command:** `npm install`
```
npm warn deprecated [email protected]: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]
added 155 packages, and audited 156 packages in 3s
38 packages are looking for funding
run `npm fund` for details
4 vulnerabilities (1 moderate, 3 high)
To address all issues, run:
npm audit fix
Run `npm audit` for details.
```
**Result:** Exit Code 0
**Command:** `npm run build`
```
> [email protected] build
> node build.mjs
Generating npm package tarball...
npm notice
npm notice 📦 [email protected]
npm notice Tarball Contents
npm notice 1.1kB LICENSE
npm notice 11.7kB README.md
npm notice 26.0kB TORCH.md
npm notice 1.1kB assets/favicon.svg
npm notice 1.1kB assets/logo.svg
npm notice 90B bin/torch-lock.mjs
npm notice 25.1kB dashboard/app.js
npm notice 870B dashboard/domUtils.js
npm notice 10.3kB dashboard/index.html
npm notice 11.0kB dashboard/styles.css
npm notice 2.0kB migrations/create_memories_table.sql
npm notice 3.5kB package.json
npm notice 3.0kB scripts/check-file-size.mjs
npm notice 3.1kB scripts/check-innerhtml.mjs
npm notice 4.1kB scripts/memory/retrieve.mjs
npm notice 4.3kB scripts/memory/store.mjs
npm notice 2.8kB scripts/test-audit/run-flaky-check.mjs
npm notice 2.2kB scripts/test-audit/run-static-analysis.mjs
npm notice 778B skills/README.md
npm notice 1.4kB skills/torch-basics.md
npm notice 6.2kB src/cli-parser.mjs
npm notice 3.3kB src/cmd-backup.mjs
npm notice 3.6kB src/cmd-check.mjs
npm notice 4.2kB src/cmd-complete.mjs
npm notice 2.9kB src/cmd-list.mjs
npm notice 3.1kB src/cmd-proposal.mjs
npm notice 8.0kB src/cmd-remove.mjs
npm notice 964B src/cmd-rollback.mjs
npm notice 3.7kB src/constants.mjs
npm notice 9.4kB src/dashboard.mjs
npm notice 190B src/errors.mjs
npm notice 15.3kB src/lib.mjs
npm notice 2.9kB src/lock-error-classifier.mjs
npm notice 5.6kB src/lock-ops.mjs
npm notice 16.0kB src/lock-publisher.mjs
npm notice 2.4kB src/lock-utils.mjs
npm notice 26.4kB src/ops.mjs
npm notice 1.9kB src/prompts/daily-scheduler.md
npm notice 15.5kB src/prompts/daily/audit-agent.md
npm notice 10.7kB src/prompts/daily/ci-health-agent.md
npm notice 16.1kB src/prompts/daily/const-refactor-agent.md
npm notice 4.0kB src/prompts/daily/content-audit-agent.md
npm notice 14.0kB src/prompts/daily/decompose-agent.md
npm notice 15.2kB src/prompts/daily/deps-security-agent.md
npm notice 12.1kB src/prompts/daily/design-system-audit-agent.md
npm notice 10.4kB src/prompts/daily/docs-agent.md
npm notice 10.5kB src/prompts/daily/docs-alignment-agent.md
npm notice 12.6kB src/prompts/daily/docs-code-investigator.md
npm notice 4.5kB src/prompts/daily/governance-agent.md
npm notice 14.3kB src/prompts/daily/innerhtml-migration-agent.md
npm notice 11.9kB src/prompts/daily/known-issues-agent.md
npm notice 11.1kB src/prompts/daily/load-test-agent.md
npm notice 5.6kB src/prompts/daily/log-fixer-agent.md
npm notice 10.5kB src/prompts/daily/onboarding-audit-agent.md
npm notice 13.9kB src/prompts/daily/perf-agent.md
npm notice 3.1kB src/prompts/daily/protocol-research-agent.md
npm notice 11.6kB src/prompts/daily/scheduler-update-agent.md
npm notice 7.9kB src/prompts/daily/style-agent.md
npm notice 3.1kB src/prompts/daily/test-audit-agent.md
npm notice 10.9kB src/prompts/daily/todo-triage-agent.md
npm notice 3.8kB src/prompts/daily/torch-garbage-collection-agent.md
npm notice 287B src/prompts/memory/condense_prompt.txt
npm notice 263B src/prompts/memory/prune_prompt.txt
npm notice 324B src/prompts/memory/score_prompt.txt
npm notice 475B src/prompts/memory/summarize_prompt.txt
npm notice 10.6kB src/prompts/META_PROMPTS.md
npm notice 1.3kB src/prompts/roster.json
npm notice 16.5kB src/prompts/scheduler-flow.md
npm notice 2.5kB src/prompts/weekly-scheduler.md
npm notice 10.5kB src/prompts/weekly/bug-reproducer-agent.md
npm notice 6.6kB src/prompts/weekly/builder-agent.md
npm notice 9.3kB src/prompts/weekly/changelog-agent.md
npm notice 13.8kB src/prompts/weekly/dead-code-agent.md
npm notice 3.5kB src/prompts/weekly/feature-proposer-agent.md
npm notice 9.9kB src/prompts/weekly/frontend-console-debug-agent.md
npm notice 11.6kB src/prompts/weekly/fuzz-agent.md
npm notice 12.1kB src/prompts/weekly/perf-deepdive-agent.md
npm notice 11.5kB src/prompts/weekly/perf-optimization-agent.md
npm notice 5.6kB src/prompts/weekly/plan-agent.md
npm notice 3.3kB src/prompts/weekly/pr-review-agent.md
npm notice 4.8kB src/prompts/weekly/prompt-fixer-agent.md
npm notice 5.7kB src/prompts/weekly/prompt-gap-analysis-agent.md
npm notice 5.6kB src/prompts/weekly/prompt-maintenance-agent.md
npm notice 6.5kB src/prompts/weekly/prompt-safety-agent.md
npm notice 5.6kB src/prompts/weekly/proposal-triage-agent.md
npm notice 14.6kB src/prompts/weekly/race-condition-agent.md
npm notice 9.4kB src/prompts/weekly/refactor-agent.md
npm notice 2.9kB src/prompts/weekly/repo-fit-agent.md
npm notice 3.3kB src/prompts/weekly/smoke-agent.md
npm notice 15.3kB src/prompts/weekly/telemetry-agent.md
npm notice 13.3kB src/prompts/weekly/test-coverage-agent.md
npm notice 6.2kB src/prompts/weekly/ui-ux-agent.md
npm notice 10.8kB src/prompts/weekly/weekly-synthesis-agent.md
npm notice 10.4kB src/relay-health-manager.mjs
npm notice 8.8kB src/relay-health.mjs
npm notice 3.9kB src/roster.mjs
npm notice 11.8kB src/services/governance/index.js
npm notice 7.2kB src/services/memory/cache.js
npm notice 4.8kB src/services/memory/embedder.js
npm notice 2.0kB src/services/memory/feature-flags.js
npm notice 5.9kB src/services/memory/formatter.js
npm notice 22.2kB src/services/memory/index.js
npm notice 11.0kB src/services/memory/ingestor.js
npm notice 11.2kB src/services/memory/pruner.js
npm notice 8.4kB src/services/memory/retriever.js
npm notice 9.3kB src/services/memory/scheduler.js
npm notice 5.6kB src/services/memory/schema.js
npm notice 5.0kB src/services/memory/summarizer.js
npm notice 10.1kB src/torch-config.mjs
npm notice 2.2kB src/utils.mjs
npm notice 2.7kB torch-config.example.json
npm notice Tarball Details
npm notice name: torch-lock
npm notice version: 0.1.0
npm notice filename: torch-lock-0.1.0.tgz
npm notice package size: 218.9 kB
npm notice unpacked size: 841.3 kB
npm notice shasum: 107a5bf459b3c214d30190058455558e5136f94b
npm notice integrity: sha512-K9IdugSD+kC4p(omitted)bojK4VAU1xz7g==
npm notice total files: 111
npm notice
torch-lock-0.1.0.tgz
Moved torch-lock-0.1.0.tgz to dist/
Build complete! Output directory: dist/
```
**Result:** Exit Code 0
**Command:** `npm test`
```
> [email protected] test
> npm run validate:scheduler && npm run test:integration:e2e && node --test --test-timeout=30000 test/*.test.mjs test/*.test.js
> [email protected] validate:scheduler
> node scripts/validate-scheduler-roster.mjs && node scripts/validate-prompt-contract.mjs && node scripts/validate-scheduler-flow-parity.mjs && npm run validate:scheduler-failure-schema
Scheduler tables, roster, and prompt filenames are in sync.
Prompt contract validated for all daily/weekly prompts.
Scheduler flow parity validated for prompts and scheduler implementation.
> [email protected] validate:scheduler-failure-schema
> node --test test/scheduler-lock-failure-schema.contract.test.mjs
TAP version 13
# Subtest: scheduler lock backend failure artifact matches required frontmatter schema
ok 1 - scheduler lock backend failure artifact matches required frontmatter schema
---
duration_ms: 143.606388
type: 'test'
...
# Subtest: schema contract catches missing required lock-backend field
ok 2 - schema contract catches missing required lock-backend field
---
duration_ms: 2.131142
type: 'test'
...
# Subtest: schema contract catches misnamed lock-backend key
ok 3 - schema contract catches misnamed lock-backend key
---
duration_ms: 0.585991
type: 'test'
...
1..3
# tests 3
# suites 0
# pass 3
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 232.751907
> [email protected] test:integration:e2e
> node --test test/scheduler-preflight-lock.e2e.test.mjs
TAP version 13
# Subtest: lock preflight e2e: successful lock writes completed status snapshot
not ok 1 - lock preflight e2e: successful lock writes completed status snapshot
---
duration_ms: 470.884913
type: 'test'
location: '/app/test/scheduler-preflight-lock.e2e.test.mjs:135:1'
failureType: 'testCodeFailure'
error: |-
Expected values to be strictly deep-equal:
+ actual - expected
{
agent: 'agent-a',
cadence: 'daily',
+ platform: 'linux',
- platform: 'jules',
status: 'completed'
}
code: 'ERR_ASSERTION'
name: 'AssertionError'
expected:
cadence: 'daily'
agent: 'agent-a'
status: 'completed'
platform: 'jules'
actual:
cadence: 'daily'
agent: 'agent-a'
status: 'completed'
platform: 'linux'
operator: 'deepStrictEqual'
stack: |-
TestContext.<anonymous> (file:///app/test/scheduler-preflight-lock.e2e.test.mjs:145:10)
async Test.run (node:internal/test_runner/test:1054:7)
async startSubtestAfterBootstrap (node:internal/test_runner/harness:296:3)
...
# Subtest: lock preflight e2e: exit code 2 quorum failure persists failed backend status and prompt-not-started marker
ok 2 - lock preflight e2e: exit code 2 quorum failure persists failed backend status and prompt-not-started marker
---
duration_ms: 103.183704
type: 'test'
...
# Subtest: lock preflight e2e: non-lock failure exits failed without prompt parse/schema classification
ok 3 - lock preflight e2e: non-lock failure exits failed without prompt parse/schema classification
---
duration_ms: 99.586401
type: 'test'
...
1..3
# tests 3
# suites 0
# pass 2
# fail 1
# cancelled 0
# skipped 0
# todo 0
# duration_ms 759.119664
```
**Result:** Exit Code 1
**Command:** `npm run lint`
```
> [email protected] lint
> eslint .
```
**Result:** Exit Code 0
## Failure Analysis
Active Known Issue: KNOWN-ISSUE-scheduler-preflight-platform
Linked Issue: [KNOWN-ISSUE-scheduler-preflight-platform]
@@ -0,0 +1,13 @@
---
agent: perf-agent
cadence: daily
run-start: 2026-02-24T01:10:54Z
---
# Test Log
Executed prompt: src/prompts/daily/perf-agent.md
## Search Patterns
**Command:** `grep -rE 'setInterval|Promise.all' src/`
**Result:** (Will be populated in next steps)
@@ -0,0 +1,14 @@
---
agent: test-coverage-agent
cadence: weekly
run-start: 2026-02-24T06:00:00Z
---
**Command:** npm run test:unit:lock-backend
**Result:** Passed
**Command:** node --test test/lock-utils.test.mjs
**Result:** Passed
**Command:** npm run lint
**Result:** Passed
@@ -0,0 +1,17 @@
# Test Log for Scheduler Update Agent
**Date:** 2026-02-24
**Agent:** scheduler-update-agent
**Cadence:** daily
## Verification Results
### Roster Check
- Daily roster matches prompt directory: YES
- Weekly roster matches prompt directory: YES
### Lint Check
- `npm run lint`: PASSED
## Changes applied
- None. Rosters are already in sync.
@@ -0,0 +1,11 @@
---
agent: style-agent
cadence: daily
run-start: 2026-02-24T18:18:09Z
---
# Test Log
**Command:** `npm run format && npm run lint && npm run lint:inline-styles`
**Result:**
(Commands executed successfully. No output means no errors.)
@@ -0,0 +1,12 @@
---
agent: todo-triage-agent
cadence: daily
run-start: 2026-02-24T21:04:05Z
---
# Test Log
Prompt: src/prompts/daily/todo-triage-agent.md
**Command:** None
**Result:** No code changes made.
@@ -0,0 +1,19 @@
---
agent: torch-garbage-collection-agent
cadence: daily
run-start: 2026-02-24T22:17:46Z
---
Prompt: src/prompts/daily/torch-garbage-collection-agent.md
# Test Log
**Command:** `find . -type f \( -name "*.log" -o -name "*.log.*" -o -name "*.out.log" -o -path "./memory-updates/*.md" \) -mtime +14 | sort`
**Result:**
(empty output) - No stale files found.
**Command:** `npm run lint`
**Result:**
Passed (exit code 0).
@@ -0,0 +1,67 @@
---
agent: audit-agent
cadence: daily
run-start: 2026-02-24T23:22:51Z
---
# Test Log: Daily Audit Run
**Prompt:** src/prompts/daily/audit-agent.md
## Command: check-file-size
**Command:** `node scripts/check-file-size.mjs --report`
**Result:**
```
README.md: 302 lines (excess: 2)
TORCH.md: 593 lines (excess: 293)
dashboard/app.js: 835 lines (excess: 535)
dashboard/styles.css: 372 lines (excess: 72)
docs/proposals/node-based-prompt-editor.md: 307 lines (excess: 7)
docs/proposals/plan-agent-architecture.md: 543 lines (excess: 243)
landing/index.html: 1567 lines (excess: 1267)
perf/constants-refactor/candidates.json: 1668 lines (excess: 1368)
reports/test-audit/flakiness-matrix.json: 766 lines (excess: 466)
scripts/agent/load-test.mjs: 641 lines (excess: 341)
scripts/agent/run-scheduler-cycle.mjs: 1355 lines (excess: 1055)
scripts/agent/scheduler-utils.mjs: 322 lines (excess: 22)
scripts/agent/verify-run-artifacts.mjs: 375 lines (excess: 75)
src/lib.mjs: 436 lines (excess: 136)
src/lock-publisher.mjs: 440 lines (excess: 140)
src/ops.mjs: 717 lines (excess: 417)
src/services/governance/index.js: 364 lines (excess: 64)
src/services/memory/index.js: 566 lines (excess: 266)
src/services/memory/pruner.js: 320 lines (excess: 20)
src/services/memory/scheduler.js: 318 lines (excess: 18)
src/torch-config.mjs: 312 lines (excess: 12)
test/governance.test.mjs: 375 lines (excess: 75)
test/lib.test.mjs: 434 lines (excess: 134)
test/lock-ops.test.mjs: 433 lines (excess: 133)
test/memory-formatter.test.mjs: 441 lines (excess: 141)
test/run-scheduler-cycle-memory-policy.test.mjs: 724 lines (excess: 424)
test/scheduler-time-window.test.mjs: 311 lines (excess: 11)
```
## Command: check-innerhtml
**Command:** `node scripts/check-innerhtml.mjs --report`
**Result:**
```
dashboard/app.js: 1 assignments
landing/index.html: 1 assignments
Total assignments: 2
```
## Command: lint
**Command:** `npm run lint`
**Result:**
```
> [email protected] lint
> eslint .
```
@@ -0,0 +1,14 @@
---
agent: todo-triage-agent
cadence: daily
run-start: 2026-02-25T00:30:00Z
---
# Test Logs (2026-02-25T00:30:00Z)
**Prompt:** src/prompts/daily/todo-triage-agent.md
## Test Log
**Command:** None
**Result:** None (No changes to test)
@@ -0,0 +1,56 @@
---
agent: audit-agent
cadence: daily
run-start: 2026-02-25T02:31:57Z
---
# Test Log
Prompt: /app/src/prompts/daily/audit-agent.md
- Command: node scripts/check-file-size.mjs --report
- Result:
```
README.md: 302 lines (excess: 2)
TORCH.md: 593 lines (excess: 293)
dashboard/app.js: 835 lines (excess: 535)
dashboard/styles.css: 372 lines (excess: 72)
docs/proposals/node-based-prompt-editor.md: 307 lines (excess: 7)
docs/proposals/plan-agent-architecture.md: 543 lines (excess: 243)
landing/index.html: 1567 lines (excess: 1267)
perf/constants-refactor/candidates.json: 1668 lines (excess: 1368)
reports/test-audit/flakiness-matrix.json: 766 lines (excess: 466)
scripts/agent/load-test.mjs: 641 lines (excess: 341)
scripts/agent/run-scheduler-cycle.mjs: 1355 lines (excess: 1055)
scripts/agent/scheduler-utils.mjs: 322 lines (excess: 22)
scripts/agent/verify-run-artifacts.mjs: 375 lines (excess: 75)
src/lib.mjs: 436 lines (excess: 136)
src/lock-publisher.mjs: 440 lines (excess: 140)
src/ops.mjs: 717 lines (excess: 417)
src/services/governance/index.js: 364 lines (excess: 64)
src/services/memory/index.js: 566 lines (excess: 266)
src/services/memory/pruner.js: 320 lines (excess: 20)
src/serv... (truncated)
```
Exit Code: 0
- Command: node scripts/check-innerhtml.mjs --report
- Result:
```
dashboard/app.js: 1 assignments
landing/index.html: 1 assignments
Total assignments: 2
... (truncated)
```
Exit Code: 0
- Command: npm run lint
- Result:
```
> [email protected] lint
> eslint .
... (truncated)
```
Exit Code: 0