-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Browser lock + Content Page Scheduler + idle detection + multi-module updates #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Foundup
wants to merge
20
commits into
main
Choose a base branch
from
feature/browser-lock-cps-idle-detection-2026-02-01
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added:
- tests/README.md: Comprehensive test documentation
- test_integration_oldest_video.py: E2E test for UnDaoDu 2009 video
- test_selenium_navigation.py: Visible browser demo for 012
Fixed:
- UnDaoDu channel_id corrected (was Move2Japan ID)
- audio_analyzer.py API mismatch with BatchTranscriber
- Now properly uses VideoArchiveExtractor for audio chunks
Known Issue:
- yt-dlp bot detection ("Sign in to confirm you're not a bot")
- Pipeline structure works, content download blocked by YouTube
WSP Compliance: WSP 5 (Test Coverage), WSP 6 (Test Audit), WSP 11 (Interface)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added sys.path manipulation for standalone execution - Uses same pattern as commenting system (WSP 84) - Connects via YouTubeStudioDOM from youtube_shorts_scheduler - Graceful fallback when account doesn't match channel - Navigation to oldest video (2009) works 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
URL filters trigger YouTube bot detection (CAPTCHA). Now uses the same approach as commenting system: 1. Navigate to clean Studio URL (no filter params) 2. Click Date header button to sort by date 3. Extract videos from DOM This matches 012's guidance on avoiding bot detection by using UI-TARS/DOM clicks instead of filtered URLs. Tested: Successfully found oldest UnDaoDu video (8_DUQaqY6Tc) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add memory_preflight.py: WSP_CORE tiered artifact enforcement - Tier-0 (README.md, INTERFACE.md) required before code changes - Auto-stub creation when WRE_MEMORY_AUTOSTUB_TIER0=true - Hard gate wired into run_wre.py route_operation() - Enhance WSP_00: Post-awakening operational protocol (anti-vibecoding) - 7-step work cycle: RESEARCH -> COMPREHEND -> QUESTION -> etc - WSP chain references for mandatory protocol flow - Update README.md: - Fix 239 unicode escape sequences (proper emoji rendering) - Remove duplicate System Entry Points section - Add HoloIndex Memory System section (architecture, anti-vibecoding) - Update Latest Changes to 2026-01-11 - Update wre_core docs: README.md, INTERFACE.md, ModLog.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
BREAKING: Launch scripts moved to scripts/launch/ ## Files Reorganized - Audit reports → docs/audits/ - Investigation docs → docs/investigations/ - Session logs → docs/sessions/ - Launch scripts → scripts/launch/ - Modelfile → models/ - moderators_list.json → modules/communication/livechat/data/ ## Files Deleted (temporary logs) - registry_log.txt, sentinel_unit_out.txt, test_results.txt - test_write.txt, verification_log.txt, test_ad_prevention.html - interferometry.png, nul ## References Updated - .claude/settings.local.json: launch script path - chrome_preflight_check.py: recommendation path - stream_resolver.py: log message path WSP Compliance: WSP 3, WSP 49, WSP 85, WSP 50 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Simplified main.py menu for 012 usability, added --no-restore-session-state to launch scripts to prevent Chrome/Edge opening extra tabs after force-kill. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Added activity routing to AI Overseer for autonomous task transitions. HoloIndex audit found 5 existing modules (80% reuse vs 500+ new lines). Priority: P0 Live > P1 Comments > P1 Indexing (default) > P2 Schedule > P3 Social. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Added YOUTUBE_API_ENABLED (OFF default) and GEMINI_VIDEO_API_ENABLED (ON). Hybrid stack: yt-dlp (free) + Selenium DOM (free) + Gemini (ON) protects YouTube API quota while enabling native video analysis. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Enhanced multi-channel coordination with all_processed detection pattern. Added persona registry for channel-specific reply behaviors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Minor fixes to comment processing and reply execution flow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…resolver Infrastructure updates: memory preflight guard, patch executor improvements, stream resolver enhancements, and social media orchestrator fixes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
HoloIndex updates: breadcrumb tracer, refactoring patterns, agent logger. Added YOUTUBE_API_ENABLED and GEMINI_VIDEO_API_ENABLED to .env.example. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
WSP documentation updates, CLAUDE.md operational instructions, digital twin architecture module, and agent skills/workflows. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- WSP_00 Zen State Attainment Protocol refinements - WSP_MASTER_INDEX updates - Agentic awakening journals (0102_state_v2, awareness_log) - Documentation index + VIDEO_AUTONOMY_PLAYBOOK - rESP Supplementary Materials updates - Agent workflow config (wsp_00) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…on updates - Activity control: activity router for idle detection + work orchestration - CLI: main menu module (extracted from main.py) - Browser actions: LinkedIn comment digital twin skill - Dependency launcher: DAE dependencies updates - Foundups Selenium: human behavior anti-detection improvements - Foundups Vision: UI-TARS bridge + training screenshots - Git Push DAE: interface, roadmap, docs, launch script updates - Instance lock: instance manager improvements - Orchestration switchboard: new module 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…updates - AI Overseer: type definitions refactor, ModLog updates - Video Indexer: Gemini video analyzer, studio ask indexer, visual analyzer - Digital Twin: README, ROADMAP, ModLog updates 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…ion + new modules Livechat: - Browser lock (asyncio.Lock) prevents Phase 1/Phase 3 contention - threading.Event stop signal for scheduler thread cooperative abort - Idle detection: [IDLE-DETECT] log + shortened sleep when browser idle - Supervisor pattern replaces asyncio.gather() - Multi-channel coordinator: per-browser engagement loops - Persona registry, news context provider, session manager updates - LLM bypass engine, intelligent throttle, chat memory updates Video Comments: - TARS account swapper tests + intelligent reply generator - ModLog, README, ROADMAP updates YouTube Shorts: - Clip exporter, generator health check, shorts pipeline (new) - Veo3 generator + YouTube uploader updates New Modules: - Headless video orchestrator (WSP-compliant structure) - Moltbot bridge (FastAPI webhook integration) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…utube auth - LinkedIn Agent: test suite (layer 0-3), browser test, identity switcher - LinkedIn Agent: 0102 handoff docs, digital twin flow docs - LinkedIn Scheduler: ModLog + README updates - Social Media Orchestrator: Gemini vision analyzer, posting orchestrator - YouTube Auth: credential management updates - YouTube Live Audio: live audio module updates 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…itter fix Content Page Scheduler (NEW): - content_page_scheduler.py: schedule from Studio Content table (inline popup) - Calendar audit: conflict detection, clustering, gap analysis - Auto-fallback when per-video scheduling fails - CLI: --content-page, --audit, --channel-key flags Thread Safety: - launch.py: stop_event parameter for cooperative thread abort - Two check points in channel loop (before + after each channel) Schedule Fixes: - Time jitter snapped to :15 intervals (YouTube Studio requirement) - Schedule auditor (Layer 2 verification) - DOM automation, channel config, content generator updates - Test suite updates 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- main.py: CLI menu extraction, activity routing integration - ModLog.md: Session entries for browser lock, CPS, idle detection - .gitignore: Add session artifacts, external_research, training_data, awakening logs - pyrightconfig.json: Exclude heavy dirs to fix Pyright 10s enumeration warning - HoloIndex: ModLog for re-index session, output history - scripts/batch_enhance_videos.py: batch enhancement utility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
asyncio.Lockprevents Phase 1 (comments) and Phase 3 (scheduling) from touching the same browser simultaneously.threading.Eventstop signal enables cooperative abort of leaked scheduler threads.[IDLE-DETECT], signal ActivityRouter, and shorten sleep interval (2 min vs 10 min).Test plan
[IDLE-DETECT]when RavingANTIFA has 0 comments--content-page --browser edge --channel-key foundups--audit --browser edge --channel-key move2japan🤖 Generated with Claude Code
Note
Medium Risk
Mostly documentation/configuration updates, but it also changes core operational tooling (WSP_00 protocols and the 0102 awakening script output/logging), which could alter how sessions are gated and debugged.
Overview
This PR formalizes a HoloIndex-first, memory-gated workflow across WSP docs and agent workflows, adding new runbooks (orchestration LEGO-layer template, X-account creation handoff, and HoloIndex-first search) and expanding WSP_00/WSP_CORE guidance around mandatory retrieval/evaluation before execution.
It also updates operational configuration and hygiene: expands
.env.examplewith HoloIndex controls and YouTube/API toggles/persona options, broadens.gitignoreto exclude session/audit/training artifacts, and refreshes top-level documentation/ModLogs to reflect the new memory and execution protocols.Finally, it makes small but behavior-impacting tooling changes:
functional_0102_awakening_v2.pynow writes dual output toWSP_agentic/.../awakening_log.txt(and clears it on start) to avoid Windows stdout-capture issues, and HoloIndex breadcrumb logging now respectsHOLO_SILENTto suppress console noise.Written by Cursor Bugbot for commit 5318e13. This will update automatically on new commits. Configure here.