Weekly fuzz-agent run: fixes and execution

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-18 15:22:04 +00:00
1 parent 6f34b7d32f
commit 57f6675c64
10 files changed
+201 -11

No files matched your search

+126 -7
View File
@@ -94,7 +94,7 @@
"importance": 0.4,
"embedding_id": null,
"created_at": 1771369913961,
"last_seen": 1771377118848,
"last_seen": 1771427664054,
"source": "scheduler-retrieve",
"ttl_days": null,
"merged_into": null,
@@ -117,7 +117,7 @@
"importance": 0.25,
"embedding_id": null,
"created_at": 1771370050385,
"last_seen": 1771384958445,
"last_seen": 1771427562318,
"source": "ingest",
"ttl_days": null,
"merged_into": null,
@@ -140,7 +140,7 @@
"importance": 0.25,
"embedding_id": null,
"created_at": 1771370084740,
"last_seen": 1771384958445,
"last_seen": 1771427562318,
"source": "ingest",
"ttl_days": null,
"merged_into": null,
@@ -163,7 +163,7 @@
"importance": 0.25,
"embedding_id": null,
"created_at": 1771370148079,
"last_seen": 1771384958445,
"last_seen": 1771427562318,
"source": "ingest",
"ttl_days": null,
"merged_into": null,
@@ -262,7 +262,7 @@
"importance": 0.25,
"embedding_id": null,
"created_at": 1771384842151,
"last_seen": 1771384958445,
"last_seen": 1771427562318,
"source": "ingest",
"ttl_days": null,
"merged_into": null,
@@ -285,7 +285,7 @@
"importance": 0.25,
"embedding_id": null,
"created_at": 1771384870483,
"last_seen": 1771384958445,
"last_seen": 1771427562318,
"source": "ingest",
"ttl_days": null,
"merged_into": null,
@@ -308,11 +308,130 @@
"importance": 0.25,
"embedding_id": null,
"created_at": 1771384958439,
"last_seen": 1771384958445,
"last_seen": 1771427562318,
"source": "ingest",
"ttl_days": null,
"merged_into": null,
"pinned": false
}
],
[
"014476d4-ea5f-4376-b1f5-580ae60659ca",
{
"schema_version": 1,
"id": "014476d4-ea5f-4376-b1f5-580ae60659ca",
"agent_id": "agent-telemetry",
"session_id": "s-telemetry",
"type": "batch_window",
"content": "customer token ABC123 secret",
"summary": "customer token ABC123 secret",
"tags": [
"incident"
],
"importance": 0.25,
"embedding_id": null,
"created_at": 1771427339704,
"last_seen": 1771427562318,
"source": "ingest",
"ttl_days": null,
"merged_into": null,
"pinned": false
}
],
[
"49d14ded-6843-45d6-b113-768b8db36fa7",
{
"schema_version": 1,
"id": "49d14ded-6843-45d6-b113-768b8db36fa7",
"agent_id": "agent-telemetry",
"session_id": "s-telemetry",
"type": "batch_window",
"content": "customer token ABC123 secret",
"summary": "customer token ABC123 secret",
"tags": [
"incident"
],
"importance": 0.25,
"embedding_id": null,
"created_at": 1771427363420,
"last_seen": 1771427562318,
"source": "ingest",
"ttl_days": null,
"merged_into": null,
"pinned": false
}
],
[
"b0e84cd8-8da7-4677-a032-a72407557898",
{
"schema_version": 1,
"id": "b0e84cd8-8da7-4677-a032-a72407557898",
"agent_id": "agent-telemetry",
"session_id": "s-telemetry",
"type": "batch_window",
"content": "customer token ABC123 secret",
"summary": "customer token ABC123 secret",
"tags": [
"incident"
],
"importance": 0.25,
"embedding_id": null,
"created_at": 1771427562303,
"last_seen": 1771427562318,
"source": "ingest",
"ttl_days": null,
"merged_into": null,
"pinned": false
}
],
[
"db266f5c-9cd2-4444-840e-775eea3697b3",
{
"schema_version": 1,
"id": "db266f5c-9cd2-4444-840e-775eea3697b3",
"agent_id": "scheduler-memory-daily",
"session_id": "session-mls6alda",
"type": "batch_window",
"content": "Memory retrieval seed for daily :: scheduler memory retrieval",
"summary": "Memory retrieval seed for daily :: scheduler memory retrieval",
"tags": [
"scheduler",
"daily",
"retrieve"
],
"importance": 0.4,
"embedding_id": null,
"created_at": 1771427664046,
"last_seen": 1771427664054,
"source": "scheduler-retrieve",
"ttl_days": null,
"merged_into": null,
"pinned": false
}
],
[
"7f142e9b-e95a-4d53-ac98-874a1e3f395f",
{
"schema_version": 1,
"id": "7f142e9b-e95a-4d53-ac98-874a1e3f395f",
"agent_id": "scheduler-memory-weekly",
"session_id": "session-mls6alf7",
"type": "batch_window",
"content": "Store memory event A for weekly :: scheduler memory store\nStore memory event B for weekly :: scheduler memory store",
"summary": "Store memory event A for weekly :: scheduler memory store Store memory event B for weekly :: scheduler memory store",
"tags": [
"scheduler",
"weekly",
"store"
],
"importance": 0.55,
"embedding_id": null,
"created_at": 1771427664115,
"last_seen": 1771427664116,
"source": "scheduler-store",
"ttl_days": null,
"merged_into": null,
"pinned": false
}
]
]
@@ -0,0 +1,18 @@
{
"cadence": "daily",
"operation": "retrieve",
"runId": "session-mls6alda",
"servicePath": "src/services/memory/index.js#getRelevantMemories",
"inputs": {
"agentId": "scheduler-memory-daily",
"promptPath": "",
"promptIntent": "scheduler memory retrieval",
"query": "scheduler | daily | agent | scheduler-memory-daily | intent | scheduler memory retrieval",
"events": 1
},
"outputs": {
"ingestedCount": 1,
"retrievedCount": 2
},
"status": "ok"
}
@@ -0,0 +1 @@
MEMORY_RETRIEVED
@@ -0,0 +1,20 @@
{
"cadence": "weekly",
"operation": "store",
"runId": "session-mls6alf7",
"servicePath": "src/services/memory/index.js#ingestEvents",
"inputs": {
"agentId": "scheduler-memory-weekly",
"promptPath": "",
"promptIntent": "scheduler memory store",
"events": 2,
"sourceFile": "fallback"
},
"outputs": {
"storedCount": 1,
"summaries": [
"Store memory event A for weekly :: scheduler memory store Store memory event B for weekly :: scheduler memory store"
]
},
"status": "ok"
}
@@ -0,0 +1 @@
MEMORY_STORED
@@ -0,0 +1,6 @@
{
"target": "parseLockEvent",
"seed": 12345,
"iterations": 10000,
"failures": []
}
+1 -1
View File
@@ -152,7 +152,7 @@ function validateInstallDir(dir) {
// Strict validation to prevent command injection
// Only allow alphanumeric, hyphens, underscores, slashes, and periods.
if (!/^[a-zA-Z0-9_\-\/\.]+$/.test(dir)) {
if (!/^[a-zA-Z0-9_\-./]+$/.test(dir)) {
throw new Error(`Invalid directory name: "${dir}". Only alphanumeric characters, hyphens, underscores, slashes, and periods are allowed.`);
}
}
+2 -2
View File
@@ -70,7 +70,7 @@ const FALLBACK_ROSTER = {
let cachedCanonicalRoster = null;
function loadCanonicalRoster(fsModule = fs) {
function loadCanonicalRoster() {
if (cachedCanonicalRoster) return cachedCanonicalRoster;
let rosterPath = ROSTER_FILE;
@@ -120,7 +120,7 @@ export async function getRoster(cadence) {
const config = await deps.loadTorchConfig();
const dailyFromEnv = parseEnvRoster(process.env.NOSTR_LOCK_DAILY_ROSTER);
const weeklyFromEnv = parseEnvRoster(process.env.NOSTR_LOCK_WEEKLY_ROSTER);
const canonical = loadCanonicalRoster(fsModule);
const canonical = loadCanonicalRoster();
const dailyFromConfig = config.nostrLock.dailyRoster;
const weeklyFromConfig = config.nostrLock.weeklyRoster;
@@ -0,0 +1,23 @@
# Weekly Fuzz Agent Completion
**Agent:** `fuzz-agent`
**Cadence:** `weekly`
**Status:** `completed`
**Date:** `2026-02-18`
## Summary
Executed `scripts/agent/fuzz-lock-event.mjs` targeting `parseLockEvent`.
Ran 10,000 iterations with SEED=12345.
No failures found.
## Artifacts
- `artifacts/fuzz-report-lock-event-20260218.json`
## Fixes
- Fixed a bug in `src/roster.mjs` where `fsModule` was undefined.
- Fixed `test/utils.test.mjs` missing imports (`fs`, `path`, `ensureDir`).
- Fixed lint errors in `src/ops.mjs`.
## Verification
- `npm run lint`: Passed.
- `npm run test:unit:lock-backend`: Passed.
+3 -1
View File
@@ -1,6 +1,8 @@
import { describe, it, after } from 'node:test';
import assert from 'node:assert';
import { getIsoWeekStr, todayDateStr, nowUnix } from '../src/utils.mjs';
import fs from 'node:fs';
import path from 'node:path';
import { getIsoWeekStr, todayDateStr, nowUnix, ensureDir } from '../src/utils.mjs';
describe('Date Utilities', () => {
describe('todayDateStr', () => {