Commit Graph
54 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 13c626b5b6 docs(ai): improve onboarding steps
Audited the onboarding process and confirmed all steps pass.
Added .npmrc with engine-strict=true to enforce Node.js >=22 requirement.
Updated CONTRIBUTING.md and README.md to explicitly mention the Node version requirement and its enforcement.
Added artifacts/ONBOARDING_REPORT.md with the audit report.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-11 08:34:23 +00:00
google-labs-jules[bot]andPR0M3TH3AN e858f5210f chore(ai): triage TODOs and create issue for flaky test
- Created `issues/todo-hashtag-preferences-unit-test.md` to document a flaky unit test in `tests/hashtag-preferences.test.mjs`.
- Generated `artifacts/todos.txt` with the scan results.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-11 01:13:14 +00:00
thePR0M3TH3AN 5a3256afef Merge pull request #2173 from PR0M3TH3AN/ai/load-test-20260207-17226311979336768263
feat(agent): implement nostr relay load test script
2026-02-07 16:34:21 -05:00
thePR0M3TH3AN 75474e191c Merge pull request #2159 from PR0M3TH3AN/ai/deps-playwright-v1.58.2-6424352935185782190
chore(ai): bump playwright to 1.58.2
2026-02-07 16:22:01 -05:00
google-labs-jules[bot]andPR0M3TH3AN 5fa40e3750 feat(agent): implement nostr relay load test script
Implements a load testing script for Nostr relays that simulates multiple clients, generates mixed event traffic (View/Video), and measures performance metrics including latency, throughput, and CPU usage. It also includes strict safety guardrails to prevent accidental load testing against public relays.

Signed-off-by: Jules <[email protected]>

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-07 19:38:41 +00:00
google-labs-jules[bot]andPR0M3TH3AN ed60d18e15 chore(ai): bump playwright to 1.58.2
- Updated playwright and @playwright/test to 1.58.2.
- Updated dependency tracking issues for nostr-tools, stylelint, and esbuild.
- Included dependency scan artifacts in description.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-07 09:23:23 +00:00
google-labs-jules[bot]andPR0M3TH3AN c0251965da Update telemetry aggregator to include test_output.txt
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-07 06:06:59 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8f83cff04e Implement load test script with rate configuration and multipart event simulation.
- Update `scripts/agent/load-test.mjs` to support `--rate` arg.
- Add multipart video event simulation (Post + Mirror).
- Generate performance report with bottleneck analysis.
- Include `artifacts/load-report.json`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-05 19:38:01 +00:00
google-labs-jules[bot]andPR0M3TH3AN eddc545bad Add load test report 20260204
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-04 19:09:37 +00:00
google-labs-jules[bot]andPR0M3TH3AN 95b7c6df47 feat: add load test script and report
- Implement CPU usage tracking in load-test.mjs
- Run load test with 1000 clients for 60s
- Generate load-report.json with identified bottlenecks (crypto)

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-02 19:25:56 +00:00
google-labs-jules[bot]andPR0M3TH3AN 2f33992192 Fix dependencies (jsdom/nostr-tools conflict) and WebTorrent regression
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-01 13:32:00 +00:00
google-labs-jules[bot]andPR0M3TH3AN c3f386a62b chore(ai): triage TODOs and create issues
- Scan repository for TODO/FIXME comments.
- Generate `artifacts/todos.txt` with identified items.
- Create `issues/todo-issue-1.md` for flaky hashtag preferences test.
- Create `issues/todo-issue-2.md` for failing visual moderation tests.
- No trivial fixes found; all identified TODOs require investigation.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-01 01:08:37 +00:00
thePR0M3TH3AN 5694e940f0 Merge pull request #2005 from PR0M3TH3AN/chore/triage-todos-2139580575813254887
Triage TODOs and report issues
2026-01-31 13:47:32 -05:00
thePR0M3TH3AN f58b9f709e Merge branch 'unstable' into ai/deps-safe-upgrades-3374834892089585189 2026-01-31 13:46:34 -05:00
google-labs-jules[bot]andPR0M3TH3AN 8588473ca9 chore(ai): bump playwright, autoprefixer and document dependency status
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-31 09:22:51 +00:00
google-labs-jules[bot]andPR0M3TH3AN 731cde1d95 feat(telemetry): Add privacy-preserving telemetry aggregator and fix CI unit tests
- Added `scripts/agent/telemetry-aggregator.mjs` to aggregate error logs while stripping PII.
- Updated `AGENTS.md` with telemetry policy.
- Cleaned up `package.json` dev dependencies.
- Fixed `tests/nostr-login-permissions.test.mjs` by updating `js/nostr/client.js` to request all encryption permissions during login.
- Fixed `tests/hashtag-preferences.test.mjs` by clearing `nostrClient.extensionPermissionCache` in test setup to prevent state leakage.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-31 07:06:24 +00:00
google-labs-jules[bot]andPR0M3TH3AN 45f28f1d6b feat(telemetry): Document telemetry aggregation tool usage in AGENTS.md
- Added section 11 to AGENTS.md describing the `telemetry:aggregate` script.
- Documented privacy policy (PII sanitization) and opt-in guardrails.
- Verified the script functionality and PII removal.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-31 06:18:57 +00:00
google-labs-jules[bot]andPR0M3TH3AN 756b78e724 fix(nostr): Request all NIP-07 permissions on login
Updated `loginWithExtension` to request `DEFAULT_NIP07_PERMISSION_METHODS` instead of `DEFAULT_NIP07_CORE_METHODS`. This ensures encryption permissions (NIP-04/44) are requested upfront and cached, preventing permission errors or unexpected popups during subsequent operations like DM decryption or preference loading.

Also includes artifacts from TODO triage:
- `artifacts/todos.txt`: Scanned TODOs list.
- `artifacts/issue_moderation_tests.md`: Issue report for moderation test TODOs.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-31 01:44:33 +00:00
google-labs-jules[bot]andPR0M3TH3AN dabd4e96f2 chore(ai): Triage TODOs and report issues
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-31 01:28:33 +00:00
thePR0M3TH3AN ceccd34681 Revert "Dead Code Cleanup" 2026-01-30 16:51:01 -05:00
google-labs-jules[bot]andPR0M3TH3AN 60fa6c4282 chore(ai): remove dead code (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 20:54:52 +00:00
google-labs-jules[bot]andPR0M3TH3AN 0890775b86 chore(ai): add load test report for 2026-01-30
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 19:49:12 +00:00
thePR0M3TH3AN cc7fe64e90 Merge pull request #1946 from PR0M3TH3AN/ai/dead-code-20240123-13702536329573366933
chore(ai): remove dead code (agent)
2026-01-30 10:05:35 -05:00
google-labs-jules[bot]andPR0M3TH3AN 4c211cad1b fix(ci): exclude map/min files from TODO scan and mock relays in tests
- Excluded `*.map` and `*.min.js` files from the `todos.txt` generation command to prevent massive minified lines from crashing CI scripts.
- Mocked `nostrClient.readRelays` in `tests/app-batch-fetch-profiles.test.mjs` to fix assertion errors caused by duplicate network calls.
- Regenerated `artifacts/todos.txt` with the clean output.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 01:39:48 +00:00
google-labs-jules[bot]andPR0M3TH3AN ac1cadd41e chore(ai): triage TODOs and FIXMEs
Scanned the codebase for TODO/FIXME markers.
Generated artifacts/todos.txt.
Verified that identified TODOs in tests/visual/moderation.spec.ts are tracked in issues/todo-moderation-tests.md.
No new issues or PRs required as no other actionable TODOs were found.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 01:24:06 +00:00
google-labs-jules[bot]andPR0M3TH3AN 40e809245a chore(ai): remove dead code (agent)
Removed unused exports and functions identified as dead code.
- Removed unused exports from `js/utils/storage.js`, `js/utils/storagePointer.js`, `js/utils/videoTags.js`, `js/ui/moderationCopy.js`.
- Removed unused function `updateTagPillStrip` from `js/ui/components/tagPillList.js` and associated tests.
- Updated `tests/utils/video-tags.test.mjs` to remove test for private function.
- Added `artifacts/depcheck.json` showing dependency analysis.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 20:29:42 +00:00
google-labs-jules[bot]andPR0M3TH3AN d5cfbd3892 chore(ai): report dependency scans and fix test bug
- Generate `artifacts/npm-audit.json` and `artifacts/npm-outdated.json`.
- Document required major upgrades in `issues/upgrade-*.md`.
- Fix ReferenceError in `tests/nostr-login-permissions.test.mjs` exposed during verification.
- Note: `cross-env` upgrade reverted as it is a major version bump requiring separate review.
- Note: `nostr-tools` upgrade skipped per security policy.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 09:37:19 +00:00
thePR0M3TH3AN daed244b8b Merge pull request #1910 from PR0M3TH3AN/ai/todo-triage-YYYYMMDD-143089001340590731
chore(ai): automated TODO triage scan
2026-01-28 22:21:50 -05:00
google-labs-jules[bot]andPR0M3TH3AN 224e0c96bb chore(ai): Triage TODOs and generate report (agent)
Scanned the repository for TODO/FIXME/XXX comments.
Identified known flaky test TODOs in tests/visual/moderation.spec.ts, which are already tracked in issues/todo-moderation-tests.md.
No other actionable TODOs found in JS/TS sources.
Generated artifacts/todos.txt as a triage report.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 01:35:37 +00:00
google-labs-jules[bot]andPR0M3TH3AN cfbbf78941 chore(ai): add automated PR review report
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 23:49:33 +00:00
google-labs-jules[bot]andPR0M3TH3AN 09187194d8 feat(ai): Load Test Script & Report (agent)
- Updated scripts/agent/load-test.mjs to handle empty reports.
- Added scripts/agent/load-test.mjs and load-test-relay.mjs to tracking.
- Generated artifacts/load-report-20260128.json.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 19:42:29 +00:00
thePR0M3TH3AN bda8e3a7ba Merge pull request #1875 from PR0M3TH3AN/ai/dependency-scan-1626902927366051523t
chore(ai): dependency scan and report
2026-01-28 08:30:34 -05:00
google-labs-jules[bot]andPR0M3TH3AN 161afea23d chore(ai): dependency scan and report
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 09:59:04 +00:00
google-labs-jules[bot]andPR0M3TH3AN fa80ceb5f2 chore(telemetry): generate aggregated error report for 2026-01-28
- executed scripts/agent/telemetry-aggregator.mjs with ENABLE_TELEMETRY=true
- collected failure logs from unit tests (test_unit_*.log)
- generated privacy-preserving report ai/reports/telemetry-20260128.md
- generated aggregated artifacts/error-aggregates.json
- force-added reports as they are gitignored by default

This report identifies 6 unique issues primarily owned by the QA Team based on unit test failures.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 06:21:13 +00:00
google-labs-jules[bot]andPR0M3TH3AN dc1a6b7338 chore(ai): triage TODOs and create issue for moderation tests
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 01:29:00 +00:00
google-labs-jules[bot]andPR0M3TH3AN d3a3097d1c feat: implement load and stress test script with relay monitoring
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 19:10:29 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8902f31240 chore(ai): dependency scan and issue updates
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 09:52:27 +00:00
google-labs-jules[bot]andPR0M3TH3AN f29e57d17d chore(ai): triage TODOs and generate issue artifacts
Scanned the repository for TODO/FIXME/XXX comments.
Found no trivial fixes in source code.
Identified flaky tests in `tests/visual/moderation.spec.ts` requiring investigation.
Generated `artifacts/todos.txt` and `artifacts/issues_to_create.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 01:17:47 +00:00
google-labs-jules[bot]andPR0M3TH3AN cec48811be feat(scripts): enhance load test script for multi-part events (agent)
- Updated `scripts/agent/load-test.mjs` to simulate realistic video publishing flows by generating Video Post (Kind 30078), Video Mirror (Kind 1063), and NIP-71 Metadata (Kind 21/22) events for "heavy" load scenarios.
- Refactored the load generation loop to strictly separate cryptographic signing time from network transmission time, ensuring accurate performance metrics.
- Generated a baseline `artifacts/load-report.json` demonstrating ~100 events/sec throughput and sub-10ms signing latency.
- Verified execution against a local relay to prevent public network stress.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-26 19:41:50 +00:00
google-labs-jules[bot] f7aef64103 Add load testing script and initial report 2026-01-25 19:15:37 +00:00
google-labs-jules[bot] 94f3aa59df chore(ai): security scan and dependency issues
- Generated artifacts/npm-audit.json
- Generated artifacts/npm-outdated.json
- Created issue drafts in artifacts/issues/ for blocked/major upgrades:
  - nostr-tools (Blocked by policy)
  - cross-env (Major v10)
  - tailwindcss (Major v4)
  - jsdom (Major v27)
  - esbuild (Major v0.27)
2026-01-25 09:29:59 +00:00
google-labs-jules[bot] 82834a18fe chore(ai): triage TODOs and generate issue drafts
- Scanned repo for TODO/FIXME/XXX.
- Found no trivial TODOs in JS sources.
- Found non-trivial TODOs in `tests/visual/moderation.spec.ts` related to headless test environment issues.
- Generated `artifacts/todos.txt` with the findings (filtering out false positives).
- Generated `artifacts/issues.md` with issue drafts for the identified non-trivial TODOs.
2026-01-25 01:13:09 +00:00
thePR0M3TH3AN d12260b7ef Merge pull request #1628 from PR0M3TH3AN/ai/deps-playwright-1.58.0-913530217504265417
chore(ai): bump playwright to 1.58.0 and dependency scan
2026-01-24 14:32:22 -05:00
google-labs-jules[bot] f1b124f4e2 chore(ai): bump playwright to 1.58.0 and dependency scan
- Upgraded @playwright/test and playwright to ^1.58.0
- Generated dependency scan artifacts (npm-audit, npm-outdated)
- Documented issues for nostr-tools version mismatch and webtorrent upgrade
2026-01-24 09:44:41 +00:00
google-labs-jules[bot] a347fc44c9 chore(ai): triage TODOs and generate issue reports
- Generate `artifacts/todos.txt` via strict scan.
- Create `artifacts/issues/issue-moderation-tests.md` for detected test flakes.
2026-01-24 01:16:05 +00:00
google-labs-jules[bot] bc7c50d278 feat(infra): add load testing script (agent) 2026-01-23 19:19:16 +00:00
google-labs-jules[bot] 28009deae7 chore(ai): bump prettier to 3.8.1
Upgraded prettier to 3.8.1 (safe patch upgrade).
Ran security scan (0 vulnerabilities).
Identified other outdated dependencies (see PR description).
2026-01-23 09:36:20 +00:00
google-labs-jules[bot] a87d1353cb chore(ai): Triage TODOs
- Generated `artifacts/todos.txt` with relevant TODOs found in the codebase.
- Verified that no trivial JS source TODOs exist (one false positive in `profileModalController.js`).
- Identified flaky test TODOs in `tests/visual/moderation.spec.ts`.
2026-01-23 01:23:19 +00:00
google-labs-jules[bot] d1d448faf6 feat: add load testing script
- Implement `scripts/agent/load-test.mjs` for stress testing local relays.
- Simulate N clients publishing Video Post and View Events.
- Measure latency (Build, Sign, RTT), throughput, and system resources.
- Update `scripts/agent/simple-relay.mjs` to support configurable `PORT`.
- Include `artifacts/load-report-20260122.json` from a 1000-client run.
2026-01-22 19:42:13 +00:00
google-labs-jules[bot] f75531d2db chore(ai): format sources and fix moderation bugs (agent)
- Format `css/tailwind.source.css` with Prettier.
- Add allowlist entry for `VideoCard.js` media query pixel value in `scripts/check-design-tokens.mjs`.
- Remove accidental artifact `js/ui/dm/jules_session_4520373547615093905.zip`.
- Fix bug in `js/app.js` and `js/services/moderationActionController.js` where blocked users' videos were not correctly hidden in the UI immediately after blocking.
- Fix bug in `tests/app/moderation-overrides.test.mjs` where `userBlocks` mocks were insufficient to reflect state changes.
2026-01-22 14:58:35 +00:00