Commit Graph
5543 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN d2c6f0a32e chore(ai): document js/ui/components/VideoModal.js
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 15:48:06 +00:00
thePR0M3TH3AN 05d575d187 Merge pull request #2439 from PR0M3TH3AN/docs/align-docs-13610324471753771843
docs: align development docs with codebase behavior
2026-02-13 00:44:10 -05:00
thePR0M3TH3AN ad61d0cb0a Merge pull request #2438 from PR0M3TH3AN/chore/docs-alignment-daily-8450414943487656823
docs: align CLAUDE.md and nostr-event-schemas.md with codebase
2026-02-13 00:43:46 -05:00
google-labs-jules[bot]andPR0M3TH3AN ff6d5f73ca docs: align development docs with codebase behavior
- Added `npm run test:smoke` documentation to README.md and CONTRIBUTING.md
- Added `npm run audit` documentation to README.md and CONTRIBUTING.md
- Ran `npm run audit` to generate REMEDIATION_REPORT.md
- Created daily agent scheduler logs (started/completed)

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 05:38:59 +00:00
thePR0M3TH3AN 3ac3b229ff Merge pull request #2435 from PR0M3TH3AN/weekly/event-schema-agent-2163247166116264603
[weekly] event-schema-agent: validation harness and fixes
2026-02-13 00:37:18 -05:00
google-labs-jules[bot]andPR0M3TH3AN 3b0556414c docs: align CLAUDE.md and nostr-event-schemas.md with codebase
- Update `CLAUDE.md` to include `FEATURE_TRUSTED_HIDE_CONTROLS` and `FEATURE_IMPROVED_COMMENT_FETCHING`.
- Update `docs/nostr-event-schemas.md` to include detailed schemas for NIP-17 and Gift Wrap kinds (1059, 13, 14, 15, 20001, 20002, 10050).
- Add task logs for docs-alignment-agent execution.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 05:35:46 +00:00
thePR0M3TH3AN 78ee152daf Merge pull request #2436 from PR0M3TH3AN/jules-2556574723888655316-ec04037a
chore(agents): run docs-alignment-agent daily task
2026-02-13 00:34:19 -05:00
thePR0M3TH3AN 88e489befd Merge pull request #2434 from PR0M3TH3AN/daily/docs-alignment-agent-16953909253840547005
chore(agents): run docs-alignment-agent daily task — update README/CONTRIBUTING
2026-02-13 00:34:11 -05:00
thePR0M3TH3AN 501fa74840 Merge branch 'unstable' into weekly/event-schema-agent-2163247166116264603 2026-02-13 00:33:08 -05:00
thePR0M3TH3AN b55b96a620 Merge pull request #2437 from PR0M3TH3AN/claude/fix-agent-scheduler-prompts-UZUiP
Refactor scheduler meta prompts to enforce pre-flight gate
2026-02-13 00:23:11 -05:00
Claude f794971bfc fix(agents): rewrite scheduler prompts to force pre-flight execution
Agents were skipping the pre-flight curl/gh check for in-progress work,
causing duplicate task runs. Root causes:

1. Two-document indirection (meta prompt → scheduler) caused the pre-flight
   instructions to get lost when the agent opened the second file
2. No proof-of-execution gate — agents could assert "no conflicts" without
   actually running the commands
3. curl|jq pipeline silently fails when jq is unavailable
4. "Step 0" labeling felt like skippable preamble

Changes:
- Make the commands the literal first instruction ("run NOW, paste output")
- Use gh CLI as primary (authenticated, no jq needed), curl as fallback
- Require raw terminal output pasted before proceeding (output gate)
- Rename "Step 0" to "PRE-FLIGHT GATE" to signal it's not optional
- Eliminate duplication between meta prompt and scheduler files
- Add explicit "STOP HERE" checkpoint after command execution
- Add skip-ahead clause for agents arriving from meta prompt

https://claude.ai/code/session_01S7jaQb9ctJ4bzqRhEcm28Q
2026-02-13 05:21:25 +00:00
google-labs-jules[bot]andPR0M3TH3AN 4077d6ee5d chore(agents): run docs-alignment-agent daily task — update CLAUDE.md scripts
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 05:20:34 +00:00
thePR0M3TH3AN fcf7fef058 Merge pull request #2433 from PR0M3TH3AN/claude/prevent-duplicate-scheduler-work-dj6XE
Add event-schema-agent task log entry for 2026-02-13
2026-02-13 00:14:50 -05:00
google-labs-jules[bot]andPR0M3TH3AN 9c65a78249 chore(agents): run event-schema-agent weekly task
- Implement `scripts/agent/validate-events.mjs` harness.
- Fix `buildWatchHistoryEvent` to default `monthIdentifier` if missing.
- Verified all builders produce valid events.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 05:14:10 +00:00
Claude 0e46902ed0 chore(agents): run event-schema-agent weekly task — enhance validator with CLI, reporting, and registry checks
Enhanced scripts/agent/validate-events.mjs with:
- CLI options: --dry-run, --out=<path>, --only=<builder>
- JSON report output (artifacts/validate-events-YYYYMMDD.json)
- sanitizeAdditionalTags test cases (3 tests)
- Schema registry verification via getAllNostrEventSchemas (35 checks)
- Runtime construction site mapping (29 call sites across codebase)
- Structured report format per agent prompt spec

All 66 validation checks pass. No schema failures found.

https://claude.ai/code/session_018HLVbfKYtfPMWcSMaC1W7N
2026-02-13 05:12:52 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8ab83506c3 chore(agents): run docs-alignment-agent daily task — update README/CONTRIBUTING
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 05:09:37 +00:00
Claude 00b103cf6e chore(agents): claim event-schema-agent weekly task
https://claude.ai/code/session_018HLVbfKYtfPMWcSMaC1W7N
2026-02-13 05:03:26 +00:00
thePR0M3TH3AN a493435970 Merge pull request #2432 from PR0M3TH3AN/claude/refactor-task-logs-NZRQD
Migrate agent task logs from CSV to directory-based format
2026-02-12 23:45:25 -05:00
Claude 17a736b8da refactor(agents): migrate task logs from CSV to directory-based format
Replace shared CSV files (AGENT_TASK_LOG.csv, WEEKLY_AGENT_TASK_LOG.csv)
with per-entry files in docs/agents/task-logs/{daily,weekly}/. Each log
entry is now a separate file named YYYY-MM-DD_HH-MM-SS_<agent>_<status>.md,
eliminating git merge conflicts and race conditions when multiple agents
run concurrently.

Updated files:
- daily-scheduler.md: rewritten for directory-based log format
- weekly-scheduler.md: rewritten for directory-based log format
- META_PROMPTS.md: updated pre-flight scan and claiming instructions
- AGENTS.md: updated scheduler reference from CSV to directory-based

Migrated all existing CSV entries to individual files in the new
directory structure.

https://claude.ai/code/session_01P62EWUXwupgxPhpnRejUuz
2026-02-13 04:41:05 +00:00
thePR0M3TH3AN b5e7403df8 Merge pull request #2430 from PR0M3TH3AN/weekly/dead-code-2026-02-13-6569719010523831144
chore(agents): run dead-code-agent weekly task
2026-02-12 23:28:27 -05:00
google-labs-jules[bot]andPR0M3TH3AN 3b37164491 chore(agents): run dead-code-agent weekly task — No dead code found
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 04:25:03 +00:00
thePR0M3TH3AN ed600ea6e5 Merge pull request #2429 from PR0M3TH3AN/ai/docs/daily-run-15303363842455284515
[daily] docs-agent: update quickstart and verify docs
2026-02-12 22:54:39 -05:00
google-labs-jules[bot]andPR0M3TH3AN 4059d52847 fix(ui): profile modal controller instantiation order
- Moved controller instantiation (DM, Relay, Hashtag) to after services setup in `ProfileModalController.js`.
- Fixed `ProfileHashtagController` usage of uninitialized services.
- Updated `profile-modal-controller.test.mjs` mock to include `uiReady/dataReady` flags and use correct service access pattern.
- Resolved CI failures in `profile-modal-controller.test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 03:50:42 +00:00
google-labs-jules[bot]andPR0M3TH3AN f8b8bae2e8 chore(agents): run docs-agent daily task — updated docs
- Updated README.md to prioritize `npx serve` and clarify testing commands.
- Verified accuracy of CONTRIBUTING.md, docs/nostr-event-schemas.md, and docs/playback-fallback.md.
- Updated docs/agents/AGENT_TASK_LOG.csv with execution status.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 03:39:14 +00:00
thePR0M3TH3AN 2d6664600c Merge pull request #2427 from PR0M3TH3AN/chore/persistent-state-migration-11965878333043736877
Migrate persistent state files to timestamped directories
2026-02-12 22:16:06 -05:00
google-labs-jules[bot]andPR0M3TH3AN 77ec8e18c3 chore(agents): migrate persistent state files to timestamped directories
- Move `CONTEXT.md`, `TODO.md`, `DECISIONS.md`, `TEST_LOG.md` to `context/`, `todo/`, `decisions/`, `test_logs/` directories with timestamps.
- Update `AGENTS.md` and `CLAUDE.md` to define the new workflow: agents must read the latest timestamped file and create a new one when updating.
- Update `daily-scheduler.md` and `weekly-scheduler.md` to initialize tasks using the new file structure.
- Update all daily agent prompts to reference the new directory structure.
- This change prevents merge conflicts on persistent state files by treating them as an append-only log of snapshots.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 03:14:50 +00:00
thePR0M3TH3AN 78aef106b3 Merge pull request #2426 from PR0M3TH3AN/codex/implement-daily-agent-task-scheduling
[daily] deps-security-agent: dependency audit baseline and triage report
2026-02-12 21:55:48 -05:00
thePR0M3TH3AN c538517fec chore(agents): run deps-security-agent daily task — baseline audit triage 2026-02-12 21:54:17 -05:00
thePR0M3TH3AN 6395aaaa1a Merge pull request #2423 from PR0M3TH3AN/ai/decompose/daily-run-4837693991627885906
[daily] decompose-agent: Extract ProfileHashtagController
2026-02-12 21:30:14 -05:00
thePR0M3TH3AN 1f23380062 update 2026-02-12 21:27:33 -05:00
google-labs-jules[bot]andPR0M3TH3AN 1b68e3c5f2 [decompose] extract ProfileHashtagController from js/ui/profileModalController.js
Extracts all hashtag preference related logic into a new controller
`js/ui/profileModal/ProfileHashtagController.js` to reduce the size of `js/ui/profileModalController.js` and improve maintainability.

- Moves `normalizeHashtagTag`, `formatHashtagTag`, `getResolvedHashtagPreferences`, `setHashtagStatus`, `refreshHashtagBackgroundStatus`, `populateHashtagPreferences`, `renderHashtagList`, `sanitizeHashtagList`, `createHashtagListItem`, `persistHashtagPreferences`, `handleAddHashtagPreference`, `handleRemoveHashtagPreference`, `handleHashtagPreferencesChange`, `describeHashtagPreferencesError`.
- Updates `ProfileModalController` to delegate to `ProfileHashtagController`.
- Adds delegate getters/methods in `ProfileModalController` to maintain backward compatibility for tests.
- Reduces `js/ui/profileModalController.js` by ~600 lines.
- Updates file size baseline in `scripts/check-file-size.mjs`.

Passes `npm run lint` and `npm run test:unit`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 02:26:08 +00:00
google-labs-jules[bot]andPR0M3TH3AN baa0be3742 [decompose] extract ProfileHashtagController from js/ui/profileModalController.js
Extracts all hashtag preference related logic into a new controller
`js/ui/profileModal/ProfileHashtagController.js` to reduce the size of `js/ui/profileModalController.js` and improve maintainability.

- Moves `normalizeHashtagTag`, `formatHashtagTag`, `getResolvedHashtagPreferences`, `setHashtagStatus`, `refreshHashtagBackgroundStatus`, `populateHashtagPreferences`, `renderHashtagList`, `sanitizeHashtagList`, `createHashtagListItem`, `persistHashtagPreferences`, `handleAddHashtagPreference`, `handleRemoveHashtagPreference`, `handleHashtagPreferencesChange`, `describeHashtagPreferencesError`.
- Updates `ProfileModalController` to delegate to `ProfileHashtagController`.
- Adds delegate getters/methods in `ProfileModalController` to maintain backward compatibility for tests.
- Reduces `js/ui/profileModalController.js` by ~600 lines.
- Updates file size baseline in `scripts/check-file-size.mjs`.

Passes `npm run lint` and `npm run test:unit`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 02:16:06 +00:00
google-labs-jules[bot]andPR0M3TH3AN 393c06c749 [decompose] extract ProfileHashtagController from js/ui/profileModalController.js
Extracts all hashtag preference related logic into a new controller
`js/ui/profileModal/ProfileHashtagController.js` to reduce the size of `js/ui/profileModalController.js` and improve maintainability.

- Moves `normalizeHashtagTag`, `formatHashtagTag`, `getResolvedHashtagPreferences`, `setHashtagStatus`, `refreshHashtagBackgroundStatus`, `populateHashtagPreferences`, `renderHashtagList`, `sanitizeHashtagList`, `createHashtagListItem`, `persistHashtagPreferences`, `handleAddHashtagPreference`, `handleRemoveHashtagPreference`, `handleHashtagPreferencesChange`, `describeHashtagPreferencesError`.
- Updates `ProfileModalController` to delegate to `ProfileHashtagController`.
- Adds delegate getters/methods in `ProfileModalController` to maintain backward compatibility for tests.
- Reduces `js/ui/profileModalController.js` by ~600 lines.
- Updates file size baseline in `scripts/check-file-size.mjs`.

Passes `npm run lint` and `npm run test:unit`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 02:06:08 +00:00
thePR0M3TH3AN 6150ef96ff Merge branch 'unstable' into ai/decompose/daily-run-4837693991627885906 2026-02-12 20:48:23 -05:00
thePR0M3TH3AN 6552eb4d02 Merge pull request #2422 from PR0M3TH3AN/docs/agents/update-task-completion-guidelines-4349714748713660239
Add task completion guidelines to agent prompts
2026-02-12 20:47:45 -05:00
google-labs-jules[bot]andPR0M3TH3AN 5f1edebea7 [decompose] extract ProfileHashtagController from js/ui/profileModalController.js
Extracts all hashtag preference related logic into a new controller
`js/ui/profileModal/ProfileHashtagController.js` to reduce the size of `js/ui/profileModalController.js` and improve maintainability.

- Moves `normalizeHashtagTag`, `formatHashtagTag`, `getResolvedHashtagPreferences`, `setHashtagStatus`, `refreshHashtagBackgroundStatus`, `populateHashtagPreferences`, `renderHashtagList`, `sanitizeHashtagList`, `createHashtagListItem`, `persistHashtagPreferences`, `handleAddHashtagPreference`, `handleRemoveHashtagPreference`, `handleHashtagPreferencesChange`, `describeHashtagPreferencesError`.
- Updates `ProfileModalController` to delegate to `ProfileHashtagController`.
- Reduces `js/ui/profileModalController.js` by ~600 lines.
- Updates file size baseline in `scripts/check-file-size.mjs`.

Passes `npm run lint` and `npm run test:unit`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 01:39:22 +00:00
google-labs-jules[bot]andPR0M3TH3AN 205b704af0 docs(agents): add task completion guidelines to all agent prompts
- Inserts a `## TASK COMPLETION & SELF-CORRECTION` section into all daily and weekly agent prompts.
- Instructs agents to complete their task and commit upon success, rather than asking for next steps.
- Provides specific negative examples of questions to avoid.
- Places the instruction before `FINAL NOTE` or `BEGIN` markers to ensure visibility.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 01:37:12 +00:00
thePR0M3TH3AN adf739517d Merge pull request #2413 from PR0M3TH3AN/content-audit/fix-upload-docs-8160176985010143731
chore(agents): run content-audit-agent daily task
2026-02-12 20:14:04 -05:00
thePR0M3TH3AN 7c1e2c0f6e Merge pull request #2421 from PR0M3TH3AN/codex/check-for-open-daily-prs
[docs] Clarify daily/weekly scheduler PR filter scope in META_PROMPTS
2026-02-12 20:00:51 -05:00
thePR0M3TH3AN 39b27c6bbc docs(agents): clarify scheduler PR filter scope 2026-02-12 20:00:38 -05:00
thePR0M3TH3AN c495610e9a Merge pull request #2419 from PR0M3TH3AN/agents/update-pr-check-to-curl-9622646617802533133
chore(agents): replace gh pr list with curl in agent prompts
2026-02-12 19:40:08 -05:00
google-labs-jules[bot]andPR0M3TH3AN b7f63b323a chore(agents): replace gh pr list with curl in agent prompts
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 00:37:21 +00:00
thePR0M3TH3AN d234a8c506 Merge pull request #2416 from PR0M3TH3AN/claude/fix-agent-job-loop-TtnxE
Restructure scheduler to prevent duplicate work via pre-flight scan
2026-02-12 19:11:05 -05:00
Claude 857e820d65 fix(agents): prevent duplicate job selection in scheduler prompts
Agents were repeatedly picking up content-audit-agent because:
1. CSV only updated after task completion — crashes left no trace
2. PR claim check (Step 1.5) was buried and easy to skip
3. No "started" status meant failed runs were invisible to rotation
4. Pre-flight scan was too narrow (checked one agent, not all)

Changes:
- Add Step 0 (mandatory pre-flight) that scans ALL open PRs and CSV
  for in-progress work before selecting any task
- Introduce "started" CSV status logged immediately upon claiming,
  before task execution begins — ensures rotation advances on crash
- Promote claim check from sub-step 1.5 to full Step 2 with explicit
  MANDATORY warnings
- Add 24-hour stale claim timeout for abandoned "started" entries
- Add fallback: if gh is unavailable, CSV "started" rows still work
- Strengthen META_PROMPTS.md to front-load deduplication as Step 0
  with explicit "this has happened before" warning language
- Add Quick Reference table summarizing all 5 deduplication layers

https://claude.ai/code/session_017QCJvunQJ7ATr6uZBHV5iA
2026-02-13 00:08:36 +00:00
google-labs-jules[bot]andPR0M3TH3AN eeaf89330e chore(agents): run content-audit-agent daily task — audit upload docs
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 23:50:45 +00:00
thePR0M3TH3AN 5324294b7a Merge pull request #2412 from PR0M3TH3AN/chore/agents/fix-scheduler-claims-9955232686930365858
Fix scheduler task claiming logic and add meta prompts
2026-02-12 18:42:08 -05:00
google-labs-jules[bot]andPR0M3TH3AN 7e86f96a2c chore(agents): fix scheduler task claiming logic and add meta prompts
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 23:41:48 +00:00
thePR0M3TH3AN d0c7137fb9 Merge pull request #2410 from PR0M3TH3AN/ai/constants-refactor/daily-run-5871437935366885636
[daily] const-refactor-agent: Refactor numeric constants
2026-02-12 18:36:07 -05:00
google-labs-jules[bot]andPR0M3TH3AN f130fbc3cc chore(agents): run const-refactor-agent daily task — Refactored timeouts in UI controllers (reverted webtorrent fix)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 23:20:02 +00:00
google-labs-jules[bot]andPR0M3TH3AN a77e182ed1 chore(agents): run const-refactor-agent daily task — Refactored timeouts in UI controllers and webtorrent.js to use canonical constants
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 23:10:37 +00:00