Commit Graph
5530 Commits
Author SHA1 Message Date
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
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
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
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
thePR0M3TH3AN fadd74b0af Merge pull request #2409 from PR0M3TH3AN/claude/investigate-agent-scheduling-pOFwt
Add task claiming protocol to prevent duplicate agent work
2026-02-12 17:07:26 -05:00
thePR0M3TH3AN 429d15e6f6 Merge pull request #2408 from PR0M3TH3AN/ai/ci-health-fix-watch-history-flake-12522500475940907567
test: fix flaky watch history hydration test using waitFor
2026-02-12 17:04:26 -05:00
thePR0M3TH3AN 234d8aff1c Merge pull request #2407 from PR0M3TH3AN/unstable-9885126712783436196
docs(ai): weekly changelog draft
2026-02-12 17:04:00 -05:00
Claude 749dece7dd docs(agents): add draft PR task claiming protocol to prevent duplicate work
When multiple agents (Claude Code, Codex, Jules) run schedulers concurrently,
they can pick up the same task because neither has committed yet. This adds a
"Draft PR Lock" protocol: agents must check for and create a draft PR before
starting work, acting as a distributed lock visible to all platforms.

Changes:
- AGENTS.md §12: new "Task Claiming Protocol" subsection with check/claim/race
  handling steps
- daily-scheduler.md: new Step 1.5 with concrete gh CLI commands
- weekly-scheduler.md: same Step 1.5 addition

https://claude.ai/code/session_01Vnih5ZARbEmnh3EGTDQAXX
2026-02-12 22:02:37 +00:00
google-labs-jules[bot]andPR0M3TH3AN 36a8eba565 test: fix flaky watch history hydration test using waitFor
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 21:51:20 +00:00
google-labs-jules[bot]andPR0M3TH3AN e3c382d19c docs(ai): weekly changelog draft
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 21:42:54 +00:00
thePR0M3TH3AN f482909550 Merge pull request #2405 from PR0M3TH3AN/unstable-12848923588166411502
Run audit-agent daily task
2026-02-12 16:14:50 -05:00
thePR0M3TH3AN c29d425c0d Merge pull request #2406 from PR0M3TH3AN/ai/weekly-bug-reproducer-hashtag-flakiness-11321273883304913915
Weekly Agent: Bug Reproducer (Hashtag Preferences Flakiness)
2026-02-12 16:14:18 -05:00
google-labs-jules[bot]andPR0M3TH3AN 20a295b170 chore(agents): run bug-reproducer-agent weekly task — Created reproducer for hashtag preferences flakiness
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 21:10:58 +00:00
google-labs-jules[bot]andPR0M3TH3AN fab5b11824 chore(agents): run audit-agent daily task — initial audit report
- Executed `scripts/check-file-size.mjs --report`
- Executed `scripts/check-innerhtml.mjs --report`
- Executed `npm run lint` (skipped assets check due to missing build)
- Created parser scripts in `scripts/agent/audit-parsers/`
- Generated JSON reports and summary in `artifacts/audit/2026-02-12/`
- Updated `AGENT_TASK_LOG.csv`

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 21:10:13 +00:00
thePR0M3TH3AN 8b00db23e3 Merge pull request #2404 from PR0M3TH3AN/chore/update-agent-prompts-17466220525670380821
Update interop and smoke agent prompts with missing sections
2026-02-12 15:57:03 -05:00
google-labs-jules[bot]andPR0M3TH3AN a7d18e232a chore(docs): update interop and smoke agent prompts
- Add missing FAILURE MODES, OUTPUTS PER RUN, and BEGIN sections to `docs/agents/prompts/weekly/bitvid-interop-agent.md`
- Add missing FAILURE MODES, PR & COMMIT CONVENTIONS, OUTPUTS PER RUN, and BEGIN sections to `docs/agents/prompts/weekly/bitvid-smoke-agent.md`
- Ensure consistency with other agent prompts in the repository

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 20:49:15 +00:00
thePR0M3TH3AN c0e0ffb322 Merge pull request #2403 from PR0M3TH3AN/claude/maintain-agent-prompts-hMOlO
docs(agents): add style guide and audit prompt library
2026-02-12 15:44:49 -05:00