From e8ab3032c7ae6961d6c21d8f07901c3dfce3a855 Mon Sep 17 00:00:00 2001 From: Nubenetes Bot Date: Sun, 17 May 2026 16:14:06 +0200 Subject: [PATCH] feat(ops): fully integrate safety audits and UI sync check into GitHub Workflows --- .github/workflows/agentic_cron.yml | 4 ++++ .github/workflows/agentic_v2_builder.yml | 13 ++++++------- src/v2_optimizer.py | 9 +++++++++ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/agentic_cron.yml b/.github/workflows/agentic_cron.yml index 0b9cbc02..215ac549 100644 --- a/.github/workflows/agentic_cron.yml +++ b/.github/workflows/agentic_cron.yml @@ -96,6 +96,10 @@ jobs: pip install --no-cache-dir pydantic PyGithub aiohttp beautifulsoup4 httpx fake-useragent pytz python-dotenv twikit>=2.1.2 playwright playwright-stealth pyyaml playwright install chromium --with-deps + - name: Workflow UI Synchronization Check (Mandate 11) + run: | + python src/sync_workflow_ui.py + - name: Global Agentic Curation Execution id: run_curation env: diff --git a/.github/workflows/agentic_v2_builder.yml b/.github/workflows/agentic_v2_builder.yml index b5d23906..160ecd42 100644 --- a/.github/workflows/agentic_v2_builder.yml +++ b/.github/workflows/agentic_v2_builder.yml @@ -56,6 +56,11 @@ jobs: PYTHONPATH: . run: | python -u src/v2_optimizer.py + if [ -f v2_safety_report.md ]; then + cat v2_safety_report.md >> pr_description.md + else + echo "No safety report generated." > pr_description.md + fi - name: Create Pull Request for V2 Elite Update uses: peter-evans/create-pull-request@v6 @@ -63,12 +68,6 @@ jobs: branch: bot/v2-elite-sync base: develop title: "V2 Elite: Agentic Optimization Sync (2026)" - body: | - This PR updates the Nubenetes V2 (Agentic Elite) edition. - - The AI agent has scanned the V1 archive and selected the top-tier resources according to 2026 architectural standards. - - GitHub Repos inactive for too long have been deprioritized. - - Fundational 'Awesome' lists have been preserved. - - Redundancy has been reduced to focus on innovation. + body-path: pr_description.md commit-message: "feat: sync V2 elite curated edition" labels: "v2-elite, agentic-sync" diff --git a/src/v2_optimizer.py b/src/v2_optimizer.py index f2b033ea..82ad2b9f 100644 --- a/src/v2_optimizer.py +++ b/src/v2_optimizer.py @@ -107,6 +107,15 @@ class V2VisionEngine: await self._sync_enterprise_navigation(v2_data) self._save_inventory() log_event("V2 ELITE PORTAL GENERATED SUCCESSFULLY.") + + # --- FINAL SAFETY AUDIT --- + try: + from src.safety_guard import SafetyGuard + guard = SafetyGuard() + report = guard.generate_audit_report() + with open("v2_safety_report.md", "w") as f: f.write(report) + except Exception as e: + log_event(f" [!] V2 Safety Audit Error: {e}") async def _gather_all_v1_content(self): all_links, mosaic_html, videos_html = [], "", ""