Merge pull request #2672 from PR0M3TH3AN/agents/daily/prompt-curator-agent-2026-02-22-2018433635480124911

docs(agents): prompt curation run 2026-02-22
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-22 15:51:03 -05:00
commit b65ad21901
14 files changed
+161 -100

No files matched your search

+15 -8
View File
@@ -1,26 +1,33 @@
# Prompt Library Status
Last updated: 2026-02-18
Last updated: 2026-02-22
Run type: Daily
## Summary
- **Total prompts**: 36 (21 daily, 15 weekly) + 2 schedulers
- **Health**: Good. All prompts follow the canonical structure.
Verified `test-audit-agent` update is consistent with repo policy.
- **Health**: Good. Fixed broken path references in multiple prompts.
## Changes This Run
### Verified Fixes
None.
- **`weekly/bitvid-smoke-agent.md`**: Fixed missing `.js` extension in `js/nostrClientFacade.js` reference.
- **`weekly/bitvid-test-coverage-agent.md`**: Updated examples to reference existing files (`js/nostr/utils.js`, `js/services/storageService.js`) instead of placeholders.
- **`daily/bitvid-content-audit-agent.md`**:
- Removed reference to non-existent `content/docs/upload.md`.
- Updated `js/services/uploadService.js` to `js/services/s3UploadService.js`.
- Updated `js/ui/uploadModal.js` to `js/ui/components/UploadModal.js`.
- **`daily/bitvid-deps-security-agent.md`**: Updated `scripts/deps-audit.sh` to `scripts/generate-deps-report.cjs`.
- **`daily/bitvid-const-refactor-agent.md`**:
- Updated regex/grep instructions to be generic.
- Updated target file examples to existing files (`js/nostr/watchHistory.js`, `js/nostr/relayBatchFetcher.js`).
- **`daily/bitvid-nip-research-agent.md`**: Updated test file reference to `tests/dm-decryptor.test.mjs`.
- **`daily/bitvid-test-audit-agent.md`**: Clarified wildcard `js/webtorrent*` to explicit `js/webtorrent.js`.
### Audited Prompts (Sample)
- `daily/bitvid-test-audit-agent.md` (Verified recent update)
- `daily/bitvid-docs-alignment-agent.md` (Verified valid)
- `daily/bitvid-docs-agent.md` (Verified valid)
- `daily/bitvid-known-issues-agent.md` (Verified valid)
- `daily/bitvid-prompt-curator-agent.md` (Self)
## Known Remaining Issues
@@ -100,7 +100,7 @@ DETAILED WORKFLOW (step-by-step)
- Generic app-level: `js/constants.js`
- Nostr/relay-level: `js/nostr/relayConstants.js`
- Cache TTLs: `js/nostr/cachePolicies.js`
- If a more specific domain exists (e.g., `js/services/watchHistoryConstants.js`), prefer creating in that domain.
- If a more specific domain exists (e.g., `js/nostr/watchHistory.js`), prefer creating in that domain.
- Choose a clear semantic name. Naming guidelines:
- Use all-caps snake-case with domain and unit: e.g., `FAST_RELAY_TIMEOUT_MS`, `DM_DECRYPT_WORKER_MAX_PENDING`, `WATCH_HISTORY_REPUBLISH_MAX_DELAY_MS`, `DEFAULT_RETRY_ATTEMPTS`.
- Suffix with `_MS` for millisecond timeouts, `_S` for seconds, `_COUNT`, `_TTL_MS`.
@@ -210,7 +210,7 @@ PR / REVIEW CHECKLIST (what maintainers expect)
===============================================================================
EXAMPLE: end-to-end flow for 5000ms duplicates
- Discover `5000` appears in `js/relayManager.js`, `js/nostr/watchHistory.js`, `js/nostr/relayClient.js`.
- Discover `5000` appears in `js/relayManager.js`, `js/nostr/watchHistory.js`, `js/nostr/relayBatchFetcher.js`.
- Determine these uses are all "fast relay timeout" semantics.
- Check `js/nostr/relayConstants.js` — no `FAST_RELAY_TIMEOUT_MS`. Decide to add:
```js
@@ -49,7 +49,7 @@ Each phase below includes concrete steps and deliverables.
Goal: build a complete mapping: `/content` page → concrete claims → code locations that implement the claim.
Steps:
- List every page in `/content` related to uploading, contributing, or media (e.g., `content/docs/upload.md`, `content/contribute/*`, `content/guides/*`). Use:
- List every page in `/content` related to uploading, contributing, or media (e.g., `content/contribute/*`, `content/guides/*`). Use:
```
rg --hidden --files --glob 'content/**' | rg '/content/' -n
@@ -67,7 +67,7 @@ rg --hidden --files --glob 'content/**' | rg '/content/' -n
- Licensing & attribution templates and policies
- How to edit/delete content and check status
- For each claim, find the authoritative code location(s) — the file(s) and function(s) implementing it:
- Upload UI: look under `js/` for upload modal/upload service controllers (e.g., `js/services/uploadService.js`, `js/ui/uploadModal.js`).
- Upload UI: look under `js/` for upload modal/upload service controllers (e.g., `js/services/s3UploadService.js`, `js/ui/components/UploadModal.js`).
- API endpoints: search backend server for upload handlers (e.g., `server/` or `api/`).
- Storage/processing: check any `torrent/`, `storage/`, or `cloud` integration code.
- Moderation code: e.g., `js/userBlocks.js`, moderation service.
@@ -77,7 +77,7 @@ rg --hidden --files --glob 'content/**' | rg '/content/' -n
- Produce a deliverable CSV or markdown table:
```
/content/path.md | Claim: "Max file size 100MB" | Code: js/services/uploadService.js#L123-L160 | Verified? (unknown)
/content/path.md | Claim: "Max file size 100MB" | Code: js/services/s3UploadService.js#L123-L160 | Verified? (unknown)
```
@@ -33,7 +33,7 @@ Create/update these files/folders (commit them in the branch when PRing):
- `todo/TODO_<timestamp>.md` — upgrade tasks and statuses.
- `decisions/DECISIONS_<timestamp>.md` — rationale for upgrade choices and tradeoffs.
- `test_logs/TEST_LOG_<timestamp>.md` — exact commands run and their outputs (timestamped).
- Optionally: `scripts/deps-audit.sh` for reproducible automation.
- Optionally: `scripts/generate-deps-report.cjs` for reproducible automation.
Also read `AGENTS.md` and `KNOWN_ISSUES.md` for project-specific caveats (e.g., the repo uses `nostr-tools`, `webtorrent`, `Playwright`, `Tailwind`). Tag these libraries for special handling.
@@ -156,7 +156,7 @@ SEARCH PATTERNS & REPO COMMANDS
- Example validation commands:
- Fetch NIP markdown: `curl -sSL https://raw.githubusercontent.com/nostr-protocol/nips/master/text/0000-nip.md > artifacts/nips/nip-0000.md`
- Run a local node test harness: `node test/nostr-specs/validate-serialization.js`
- Run unit tests for nostr helpers: `npm test -- js/nostr/dmDecryptWorker.test.js --runInBand`
- Run unit tests for nostr helpers: `npm test -- tests/dm-decryptor.test.mjs --runInBand`
===============================================================================
TESTS & AUTOMATION (what to add)
@@ -106,7 +106,7 @@ DAILY WORKFLOW (run every day or as scheduled)
- `js/nostr/watchHistory.js` — normalization, payload limits, republish backoff/jitter.
- `js/userBlocks.js` — block list parsing/sanitation.
- `js/ui/ambientBackground.js` — RAF and visibility gating.
- `js/webtorrent*` / `torrent/app.js` — lazy initialization.
- `js/webtorrent.js` / `torrent/app.js` — lazy initialization.
- Parse coverage data (LCOV/coverage-summary) and map production files to coverage percentages.
- Flag critical files with coverage < X% (configurable threshold, default 70%) and record in `test-audit/coverage-gaps.json`.
@@ -199,7 +199,7 @@ Focus on tests that exercise real behavior for these critical modules (examples
- Tests: normalization, payload size limits, republish backoff/jitter handling, serialization.
- **Block lists & moderation**: `js/userBlocks.js`
- Tests: tag sanitation, self-target filtering, parsing, and dumping behavior.
- **Playback & WebTorrent**: `js/webtorrent*`, `torrent/app.js`, `js/ui/ambientBackground.js`
- **Playback & WebTorrent**: `js/webtorrent.js`, `torrent/app.js`, `js/ui/ambientBackground.js`
- Tests: lazy webtorrent init, visibility gating, ensure heavy loops paused when hidden.
(If you need file paths to scan, search the `js/` tree for the filenames above).
@@ -93,7 +93,7 @@ WORKFLOW (implementation & run steps)
- If Playwright is available:
- Launch `chromium` headless and open `http://localhost:8000`
- Optionally use Playwright page APIs to interact with the UI to trigger login/publish flows
- Alternatively implement a headless Node client using `js/nostrClientFacade` directly to simulate flows without UI.
- Alternatively implement a headless Node client using `js/nostrClientFacade.js` directly to simulate flows without UI.
4) Login with ephemeral keys
- Generate ephemeral keypair in memory (do not persist)
@@ -146,8 +146,8 @@ PR & COMMIT CONVENTIONS
- Branch: `ai/tests-<module>-YYYYMMDD`
- Commit message examples:
- `test(ai): add unit tests for js/nostr/parseEvent.js (agent)`
- `test(ai): add fake-indexeddb tests for js/state/kvStore.js (agent)`
- `test(ai): add unit tests for js/nostr/utils.js (agent)`
- `test(ai): add fake-indexeddb tests for js/services/storageService.js (agent)`
- PR title: `test(ai): add unit tests for <module>`
- PR body must include:
- Baseline test/coverage run summary
@@ -0,0 +1,21 @@
# prompt-curator-agent - Daily Run
Date: 2026-02-22
Status: Completed
## Summary
Executed daily prompt curation. Verified paths in all prompt files against the codebase.
## Changes
- **Verified Paths**: Scanned all prompts for broken file references.
- **Fixed Issues**:
- `weekly/bitvid-smoke-agent.md`: Fixed missing `.js` extension.
- `weekly/bitvid-test-coverage-agent.md`: Updated examples to real files.
- `daily/bitvid-content-audit-agent.md`: Fixed `docs/upload.md` reference and `js/services/s3UploadService.js`.
- `daily/bitvid-deps-security-agent.md`: Updated `scripts/deps-audit.sh` to `scripts/generate-deps-report.cjs`.
- `daily/bitvid-const-refactor-agent.md`: Updated target file examples.
- `daily/bitvid-nip-research-agent.md`: Updated test file reference.
- `daily/bitvid-test-audit-agent.md`: Clarified wildcard usage.
- **Updated Status**: Updated `docs/agents/PROMPT_LIBRARY_STATUS.md`.