chore(audit): run onboarding-audit-agent daily cycle

- Executed onboarding-audit-agent
- Verified artifacts
- Created report reports/audit/onboarding-audit-2026-02-24.md
- Documented npm test failure due to platform mismatch
- Published completion lock

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-24 00:34:56 +00:00
1 parent 1bff009a63
commit 6417c2a6b0
7 files changed
+383

No files matched your search

@@ -0,0 +1,8 @@
# Memory Update — onboarding-audit-agent — 2026-02-24
## Key findings
- `npm test` fails if `AGENT_PLATFORM` is set to something other than what `detectPlatform()` returns, due to `test/scheduler-preflight-lock.e2e.test.mjs`.
- `test/scheduler-preflight-lock.e2e.test.mjs` should probably be updated to respect `AGENT_PLATFORM` if set in the environment.
## Warnings / gotchas
- When running audits in Jules/Codex/etc, be aware of `detectPlatform()` behavior vs `AGENT_PLATFORM` overrides.
@@ -0,0 +1,44 @@
# Onboarding Audit Report - 2026-02-24
## Headline
⚠️ Onboarding failures found
## Environment
- OS: Linux (Jules)
- Node: v22.22.0
- npm: 11.7.0
## Steps Executed
1. `npm install`
2. `npm run build`
3. `npm test`
4. `npm run lint`
## Results
- `npm install`: PASS
- `npm run build`: PASS
- `npm test`: FAIL (Exit Code 1)
- `npm run lint`: PASS
## Failures
### `npm test`
The test `test/scheduler-preflight-lock.e2e.test.mjs` failed due to a platform mismatch.
The test expects the platform in the log to match `detectPlatform()` (which is `jules` in this environment), but the scheduler used `linux` (explicitly set via `AGENT_PLATFORM` for this audit run).
This is a known issue (`KNOWN-ISSUE-scheduler-preflight-platform`).
**Log Excerpt:**
```
not ok 1 - lock preflight e2e: successful lock writes completed status snapshot
---
actual:
platform: 'linux'
expected:
platform: 'jules'
```
**Root Cause:**
The test `test/scheduler-preflight-lock.e2e.test.mjs` asserts that the logged platform matches `detectPlatform()`, ignoring any `AGENT_PLATFORM` environment variable that might have been passed to the scheduler. When `AGENT_PLATFORM` is set manually, the scheduler uses it, causing a mismatch with the test's hardcoded expectation.
## Docs Changes
- None made. The instructions in `README.md` are correct for a default run.
@@ -0,0 +1,18 @@
# Context: Onboarding Audit Agent
- Agent: onboarding-audit-agent
- Cadence: daily
- Run Start: 2026-02-24T00:28:14Z
- Prompt: src/prompts/daily/onboarding-audit-agent.md
## Goal
Ensure fresh developer onboarding works from a clean checkout by validating README onboarding steps.
## Scope
- Validating onboarding from a clean environment.
- Executing `npm install`, `npm run build`, `npm test`, `npm run lint`.
- Documenting failures.
## Constraints
- Follow docs first.
- Minimal churn.
+1
View File
@@ -0,0 +1 @@
not needed
@@ -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]
+1
View File
@@ -0,0 +1 @@
not needed
@@ -0,0 +1,14 @@
---
cadence: daily
agent: onboarding-audit-agent
status: completed
reason: Scheduler cycle completed successfully
created_at: 2026-02-24T00:28:14Z
timestamp: 2026-02-24T00:28:14Z
platform: linux
---
# Scheduler completed
- reason: Scheduler cycle completed successfully
- platform: linux