Commit Graph
110 Commits
Author SHA1 Message Date
thePR0M3TH3ANandClaude Opus 4.8 618525b412 docs(todo): NIP-71 mirror auto-sync done; note remaining polish
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-22 10:23:23 -04:00
thePR0M3TH3ANandClaude Opus 4.8 6b97626da8 docs(todo): NIP-71 mirror toggle live; note remaining polish
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-22 09:41:15 -04:00
thePR0M3TH3ANandClaude Opus 4.8 0c92a259c5 docs(todo): NIP-71 Phase 1 progress (1a/1b done; 1c-1e remain)
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-22 09:19:07 -04:00
thePR0M3TH3ANandClaude Opus 4.8 a004ee0b11 docs(todo): mark NIP-71 Phase 0 done
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-21 23:05:31 -04:00
thePR0M3TH3ANandClaude Opus 4.8 bd056b2e3b docs(nip71): interop migration plan + refresh stale vendored NIP-71 spec
Adds docs/nip71-migration-plan.md — the agreed spec to build from:
- Dual-event, opt-in (off by default): keep canonical kind 30078; add addressable
  34235/34236 mirror (d=videoRootId, edits in lockstep).
- Research correction: 34235/36 are NOT deprecated — current NIP-71 designates the
  addressable pair for content that needs post-publication updates (exactly bitvid's
  edit-in-place model).
- WebTorrent rides STANDARD NIP-94 imeta fields (magnet, i) rather than a hack;
  private videos never mirrored; HTTPS url required to mirror.
- Phases: 0 retarget builders → 1 outbound publish/edit/delete → 1.5 NIP-89 "Open in
  bitvid" handler + NIP-51 kind 30005 portable playlists → 2 inbound ingest.

Also refreshes docs/nips/71.md (was stale: only 21/22; now the current 233-line
spec with 34235/36 addressable kinds, waveform, origin, multi-audio). Updates
TODO #17 to point at the plan.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-21 22:40:57 -04:00
thePR0M3TH3ANandClaude Opus 4.8 234f57e009 docs(todo): mark encrypted settings sync (#15) complete
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-21 18:09:50 -04:00
thePR0M3TH3ANandClaude Opus 4.8 c651271af3 docs(todo): mark storage sync shipped; NWC + login-pull remain
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-21 17:18:48 -04:00
thePR0M3TH3ANandClaude Opus 4.8 25c56fad48 docs(todo): record watch-history all-relays false-failure fix
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-20 19:21:20 -04:00
thePR0M3TH3ANandClaude Opus 4.8 12440d2f48 docs(todo): record profile-pane no-op fix + logged-out local delete fix
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-20 18:53:23 -04:00
thePR0M3TH3ANandClaude Opus 4.8 5dd5451dc7 docs(todo): add live-stream (NIP-53) + short-form NIP-71 watch support
Two new content-type backlog items (research-first): watch-only Nostr live
streams from zap.stream/shosho.live (likely NIP-53 kind 30311 + 1311 chat), and
consuming external short-form/NIP-71 video notes (likely kind 22/21) from apps
like Amethyst. Flags that these are two distinct NIPs, not the same thing.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-20 18:11:47 -04:00
thePR0M3TH3ANandClaude Opus 4.8 882ba3303d docs(todo): add opt-in encrypted cross-login sync of storage creds + NWC
Captures the requested feature: optionally sync S3/R2 storage credentials and the
NWC zap wallet URI across logins via a self-encrypted NIP-78 (kind 30078) note,
unlocked by the signer. Includes the design path (reuse the existing envelope
encryption for storage creds; NIP-44-to-self for the NWC URI), the relay/
replaceable lessons from this session (write relays, strictly-newer created_at,
newest-per-d-tag on read, empty-publish to clear), opt-in UX, and the threat
model (public-relay blob, key-compromise trust root, NWC = spending capability,
signer decrypt budget).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-20 17:58:15 -04:00
thePR0M3TH3ANandClaude Opus 4.8 df28c67496 docs(todo): mark watch-history empty-month clear fixed; all 3 gaps closed
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-20 17:54:27 -04:00
thePR0M3TH3ANandClaude Opus 4.8 421e50a90f docs(todo): record watch-history read-dedup fix + remaining empty-month clear
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-20 17:39:30 -04:00
thePR0M3TH3ANandClaude Opus 4.8 51a9b3e788 docs(todo): record My Videos follow-ups + deploy/CI infra items
Adds this session's deferred/discovered work: My Videos Restore action, info.json
upload sidecar (with privacy guard), orphan size/date metadata, confirm-modal
polish, external-URL liveness caveat; plus the on-demand deploy workflow decision
(beta?) and the env-sensitive visual-regression baseline that needs CI-side
regeneration. Marks the orphan-GC item as largely delivered by the My Videos tab,
and logs the completed My Videos / delete / watch-history / CI / Vercel work.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-20 17:21:21 -04:00
thePR0M3TH3ANandClaude Opus 4.8 9a48c59953 docs(todo): mark watch-history delete fix done; note write-relay confirmation
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-20 12:58:20 -04:00
thePR0M3TH3ANandClaude Opus 4.8 f3dff8e5b9 docs(todo): mark delete relay-scope fix done; note remaining verify steps
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-20 12:44:49 -04:00
thePR0M3TH3ANandClaude Opus 4.8 d513fd8874 docs(todo): add consolidated pre-launch fixes & audits backlog
Captures the remaining suggested improvements plus the user's newly reported
pre-launch items: tombstoned-videos-still-showing delete audit, broken
watch-history delete, zaps + platform-fee-split audit, generic-S3 testing, view
counter accuracy, mobile/video-card layout, card-hide liveness audit, orphan GC
tool, login REQ-storm, webtorrent null.fill crash, flaky-test hardening, and the
unstable→beta promotion. Includes a "Done this session" section for context.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-20 12:32:27 -04:00
thePR0M3TH3ANandClaude Opus 4.8 c5a91cb4d2 [docs] mark slice B part 2 (bulk incremental decrypt) complete
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-17 18:23:27 -04:00
thePR0M3TH3ANandClaude Opus 4.8 5db18c9bd0 [docs] record slice B findings: DMs already optimal, watch-history routed
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-17 12:55:41 -04:00
thePR0M3TH3ANandClaude Opus 4.8 d143883e9c docs(todo): record NIP-46 decrypt slice A done + slice B (bulk DM/history) open
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-17 12:14:21 -04:00
thePR0M3TH3ANandClaude Opus 4.8 3adf1be77d fix(nip46): enforce the access-control validator on remote-signer login
connectRemoteSigner and useStoredRemoteSigner accepted but never used the
`validator` the auth provider passes (accessControl.canAccess) -- so NIP-46
logins bypassed the block/allow gate that nsec/NIP-07 logins enforce. (The
validation lived only on the unused Nip46Connector.)

Both paths now run the validator against the remote signer's resolved user
pubkey BEFORE activating the signer (via _enforceRemoteSignerValidator): the
validator throws on a blocked/non-permitted pubkey, or returning false rejects
with code remote-signer-access-denied. A stored session rejected by the
validator is forgotten so a blocked pubkey can't keep retrying.

Residual (noted in TODO): the silent startup auto-restore
(scheduleStoredRemoteSignerRestore) still reconnects without a validator.

Test: tests/nostr/nip46-prepare-handshake.test.mjs (validator throws / false /
true / absent). Full suite green.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-17 06:44:47 -04:00
thePR0M3TH3ANandClaude Opus 4.8 fdebf05e1a feat(s3): bring generic S3 to parity with R2 (cleanup + CORS guidance)
Two gaps where generic S3 trailed Cloudflare R2:

1. Object cleanup on delete/edit didn't work for generic S3. deleteVideoStorage
   built its client via makeR2Client, which hard-forces path-style and ignores
   the connection's forcePathStyle -- so vhost-style S3 deletes were misaddressed
   and cleanup silently failed (S3 users' deleted/edited files orphaned). It is
   now provider-aware (mirrors uploadFile): R2 -> makeR2Client (path-style),
   generic S3 -> makeS3Client honoring forcePathStyle. makeS3Client is now
   injectable for testing.

2. CORS guidance on upload failure was R2-only. Extracted isLikelyCorsError +
   a generic-S3 guidance builder into js/utils/uploadErrorHints.js (re-exported
   from r2Service for back-compat); s3UploadService now appends actionable CORS
   guidance on an opaque "Failed to fetch" too.

Generic S3 is now at functional parity with R2 for upload -> publish -> cleanup.

Tests: r2-delete-video-storage (adds generic-S3 forcePathStyle routing),
s3-upload-cors-guidance (new). Full suite green.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-17 06:13:38 -04:00
thePR0M3TH3ANandClaude Opus 4.8 7f5dcd7e50 fix(upload): attach CORS guidance to direct upload failures
A new user's top first-upload failure is a missing R2 CORS policy (browser
PUT/POST blocked) -- and object-scoped R2 tokens often cannot auto-set CORS.
The connection test already surfaces buildCorsGuidance on the opaque
"Failed to fetch", but a user who skips the test and uploads directly got a
bare "Upload failed: Failed to fetch". The upload error handler now detects the
browser CORS/network rejection (isLikelyCorsError -- Chrome "Failed to fetch",
Firefox "NetworkError", Safari "Load failed") and appends the same actionable
guidance. Updated the R2 follow-up TODO (credential audit done; CORS reviewed).

Test: tests/services/r2-cors-error-classifier.test.mjs. Full suite green.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-17 05:47:12 -04:00
thePR0M3TH3ANandClaude Opus 4.8 c2228f3f4f docs(todo): R2 system follow-up backlog
Captures remaining R2 work after the upload audit + object-cleanup increments:
credential-security review, bucket/custom-domain provisioning audit, CDN purge
integration, and follow-ups to the cleanup work (generic-S3 cleanup, all-versions
delete cleanup, edit thumbnail cleanup). Plus the Vercel production-branch parking
lot item.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-16 22:21:32 -04:00
thePR0M3TH3AN 0f89cc1524 chore(torch): migrate to new TORCH system and remove legacy agent stack 2026-02-25 12:58:46 -05:00
google-labs-jules[bot]andPR0M3TH3AN be5ad33918 audit-agent: Daily audit run
- Ran audit scripts: check-file-size, check-innerhtml, lint
- Generated artifacts/audit/2026-02-25/
- Created docs/agents/task-logs/daily/2026-02-25_..._audit-agent_completed.md

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-25 17:07:41 +00:00
thePR0M3TH3AN 4ab759c0bd Merge branch 'unstable' into agents/daily/scheduler-update-agent-2026-02-23-1075521348879577769 2026-02-25 10:35:24 -05:00
thePR0M3TH3AN 887c802436 Merge branch 'unstable' into agents/daily/test-audit-agent-2026-02-23-4813203485121112615 2026-02-25 10:34:50 -05:00
thePR0M3TH3AN faf71804f3 Merge pull request #2684 from PR0M3TH3AN/agents/daily/scheduler-update-agent-2026-02-23_15-01-13-11531375802940964250
docs(agents): sync scheduler rosters — 2026-02-23
2026-02-25 10:34:09 -05:00
thePR0M3TH3AN a169a05a29 Merge pull request #2680 from PR0M3TH3AN/agents/daily/scheduler-update-2026-02-23-6263634357757049561
docs(agents): sync scheduler rosters
2026-02-25 10:30:49 -05:00
google-labs-jules[bot]andPR0M3TH3AN 4e78b3878d Daily Agent: audit-agent
Completed audit run for 2026-02-25.

- Ran file size check (43 grandfathered files, 0 new violations).
- Ran innerHTML check (37 assignments).
- Ran lint (0 failures).
- Generated summary report.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-25 14:56:48 +00:00
google-labs-jules[bot]andPR0M3TH3AN 2374730a57 chore: execute daily audit-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-24 20:05:29 +00:00
google-labs-jules[bot]andPR0M3TH3AN 53168baae0 docs: daily agent test-audit-agent execution
- Executed unit tests (passed).
- Detected flakiness in subsequent test runs (timeout).
- Performed static analysis (zero assertions, timing, console usage).
- Generated test audit report and saved to `artifacts/`.
- Updated test logs and flakiness matrix.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-24 17:11:49 +00:00
thePR0M3TH3AN 8ac7658540 Merge pull request #2691 from PR0M3TH3AN/agents/daily/scheduler-update-agent-2026-02-23-14445323072037220417
docs(agents): sync scheduler rosters — 2026-02-23
2026-02-23 22:53:15 -05:00
google-labs-jules[bot]andPR0M3TH3AN 0b9d0d6b08 docs(agents): scheduler-update-agent sync (no changes)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-23 23:37:36 +00:00
google-labs-jules[bot]andPR0M3TH3AN 14f07d0dbc docs(agents): sync scheduler rosters — 2026-02-23
Executed scheduler-update-agent to verify daily and weekly scheduler rosters.
Inventories of `docs/agents/prompts/daily/` and `docs/agents/prompts/weekly/` matched the existing rosters in `daily-scheduler.md` and `weekly-scheduler.md`.
No updates required.
Generated logs:
- context/CONTEXT_2026-02-23_scheduler-update-agent.md
- todo/TODO_2026-02-23_scheduler-update-agent.md
- decisions/DECISIONS_2026-02-23_scheduler-update-agent.md
- test_logs/TEST_LOG_2026-02-23_scheduler-update-agent.md
- docs/agents/task-logs/daily/2026-02-23_scheduler-update-agent_completed.md

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-23 20:50:54 +00:00
google-labs-jules[bot]andPR0M3TH3AN 70888ce81b chore: execute daily test-audit-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-23 20:14:04 +00:00
google-labs-jules[bot]andPR0M3TH3AN b0a4341ff2 agents: run daily test-audit-agent (2026-02-23)
- Executed test-audit-agent daily task.
- Generated audit report in docs/agents/task-logs/daily/.
- Added reusable scripts in test-audit/ for flakiness check and static analysis.
- Verified test suite (shard 1) and identified failure in hashtag-preferences.test.mjs.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-23 17:11:14 +00:00
google-labs-jules[bot]andPR0M3TH3AN dbeb91f31f docs(agents): sync scheduler rosters — 2026-02-23
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-23 15:05:58 +00:00
google-labs-jules[bot]andPR0M3TH3AN 9666ab1d35 docs(agents): sync scheduler rosters with prompt directory
- Verified daily and weekly scheduler rosters against prompt files.
- No changes required.
- Created completion log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-23 00:55:43 +00:00
google-labs-jules[bot]andPR0M3TH3AN dc244b9e28 chore(agent): execute nip-research-agent 2026-02-22
- Executed nip-research-agent task.
- Updated NIP_INVENTORY.md.
- Fetched missing NIP specs.
- Ran validation tests.
- Created nip-report-2026-02-22.md.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-22 00:55:12 +00:00
google-labs-jules[bot]andPR0M3TH3AN b8cbf7ca84 chore: daily nip-research-agent run
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 23:46:06 +00:00
google-labs-jules[bot]andPR0M3TH3AN 3aa24f3ff2 daily: nip-research-agent NIP-42 update
- Research NIP-42 compliance.
- Update NIP_INVENTORY.md (NIP-42: Non-compliant).
- Add artifacts/nips/42.md.
- Generate nip-report-2026-02-21.md.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 20:46:44 +00:00
google-labs-jules[bot]andPR0M3TH3AN d488c4f3a2 chore(daily): execute audit-agent task 2026-02-21
Executed daily static audits:
- File Size Check: 43 grandfathered files
- InnerHTML Check: 37 assignments
- Lint Check: Passed

Generated artifacts in artifacts/audit/2026-02-21/.
Created daily completion log in docs/agents/task-logs/daily/.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 17:58:09 +00:00
google-labs-jules[bot]andPR0M3TH3AN f9f23c0d08 [security] replace innerHTML usages in js/ui/components/ShareNostrModal.js — convert to safe DOM APIs
- Replace template `innerHTML` with `DOMParser`
- Replace SVG `innerHTML` with `createElementNS`
- Replace `innerHTML = ""` with `replaceChildren()`
- Update `check-innerhtml` baseline

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 20:07:34 +00:00
google-labs-jules[bot]andPR0M3TH3AN 17930883bd chore(deps): deps-security-agent run & bump stylelint to 16.26.1
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-20 14:44:08 +00:00
google-labs-jules[bot]andPR0M3TH3AN fab2effffa docs(audit): content-audit-agent run 2026-02-19
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-19 21:56:20 +00:00
google-labs-jules[bot]andPR0M3TH3AN 21d5126d8c docs: deps-security-agent report 2026-02-19
- Audit dependencies.
- Verify jsdom 28.1.0.
- Generate artifacts/deps-report.md.
- Create completion log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-19 20:40:04 +00:00
google-labs-jules[bot]andPR0M3TH3AN bd6ca5b54e [decompose] extract BlockList and EditProfile from ProfileModalController
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-19 20:10:37 +00:00
google-labs-jules[bot]andPR0M3TH3AN f041719474 chore(docs): content audit 2026-02-19
- Verified /content/docs/guides/upload-content.md against codebase
- Corrected comments in config/instance-config.js regarding moderation thresholds
- Created inventory, verification, and validation artifacts

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-19 19:02:02 +00:00