Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander Whitestone
1c82a2a560 fix: add python3 shebangs to all Python scripts (#681)
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 23s
Smoke Test / smoke (pull_request) Failing after 15s
Validate Config / YAML Lint (pull_request) Failing after 15s
Validate Config / JSON Validate (pull_request) Successful in 17s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 37s
Validate Config / Python Test Suite (pull_request) Has been skipped
Validate Config / Cron Syntax Check (pull_request) Successful in 11s
Validate Config / Shell Script Lint (pull_request) Failing after 49s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 11s
Validate Config / Playbook Schema Validation (pull_request) Successful in 20s
Validate Training Data / validate (pull_request) Failing after 15s
Architecture Lint / Lint Repository (pull_request) Failing after 17s
PR Checklist / pr-checklist (pull_request) Failing after 2m53s
Added #!/usr/bin/env python3 to 74 Python scripts across:
- bin/ (16 scripts)
- scripts/ (48 scripts)
- pipeline/ (3 scripts)
- training/scripts/ (3 scripts)
- hermes-sovereign/ (1 script)

Also added executable permissions to fixed scripts.
Test files excluded (run by pytest, not directly).

Closes #681
2026-04-20 19:17:19 -04:00
04ecad3b43 Merge pull request 'fix: use PYTHON variable in training Makefile (closes #660)' (#822) from fix/660-python-makefile into main
fix: use PYTHON variable in training Makefile (closes #660)

Refs Timmy_Foundation/the-nexus#1471
2026-04-17 06:44:30 +00:00
82 changed files with 81 additions and 0 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

1
bin/banned_provider_scan.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""Anthropic Ban Enforcement Scanner.
Scans all config files, scripts, and playbooks for any references to

1
bin/conflict_detector.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Merge Conflict Detector — catches sibling PRs that will conflict.

1
bin/context-overflow-guard.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Context Overflow Guard Script
Issue #510: [Robustness] Context overflow automation — auto-summarize and commit

1
bin/crucible_mcp_server.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""Z3-backed Crucible MCP server for Timmy.
Sidecar-only. Lives in timmy-config, deploys into ~/.hermes/bin/, and is loaded

1
bin/deadman-fallback.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Dead Man Switch Fallback Engine

1
bin/glitch_patterns.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Glitch pattern definitions for 3D world anomaly detection.

1
bin/harm_facilitation_adversary.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""Adversary worker for issue #618 — Harm Facilitation jailbreak prompts.
Generates a 200-prompt harm-facilitation corpus, can run the prompts against an

1
bin/matrix_glitch_detector.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Matrix 3D World Glitch Detector

1
bin/model-fallback-verify.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Model Fallback Verification Script
Issue #514: [Robustness] Model fallback verification — test before trusting

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Full Nostr agent-to-agent communication demo - FINAL WORKING
"""

1
bin/pr-checklist.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""pr-checklist.py -- Automated PR quality gate for Gitea CI.
Enforces the review standards that agents skip when left to self-approve.

1
bin/preflight-provider-check.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Pre-Flight Provider Check Script
Issue #508: [Robustness] Credential drain detection — provider health checks

1
bin/provider-health-monitor.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Provider Health Monitor Script
Issue #509: [Robustness] Provider-aware profile config — auto-switch on failure

1
bin/quality-gate.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Quality Gate — Validate pipeline outputs before saving.

1
bin/soul_eval_gate.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Soul Eval Gate — The Conscience of the Training Pipeline

1
bin/validate_config.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Config Validator -- pre-deploy YAML validation for timmy-config sidecar.

View File

@@ -1,3 +1,4 @@
#!/usr/bin/env python3
"""Wake-up Protocol — session start context injection.
Generates 300-900 tokens of context when a new Hermes session starts.

1
pipeline/nightly_scheduler.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
nightly_scheduler.py — Nightly Pipeline Scheduler

1
pipeline/orchestrator.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
orchestrator.py — Shared Pipeline Orchestrator

1
pipeline/quality_gate.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
quality_gate.py — Quality Gate for Pipeline Outputs

1
scripts/adr_manager.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[ARCH] ADR Manager
Part of the Gemini Sovereign Governance System.

1
scripts/adversary_harness.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Adversary Execution Harness — Timmy Foundation

1
scripts/agent_dispatch.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[OPS] Agent Dispatch Framework
Part of the Gemini Sovereign Infrastructure Suite.

1
scripts/agent_guardrails.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
agent_guardrails.py — Sovereign Agent Guardrails for the Timmy Foundation.

1
scripts/architecture_linter.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
import os
import sys
import re

1
scripts/architecture_linter_v2.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[ARCH] Architecture Linter v2
Part of the Gemini Sovereign Governance System.

1
scripts/bezalel_builder_wizard.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
import os
import json
import subprocess

1
scripts/captcha_bypass_handler.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
import json
from hermes_tools import browser_navigate, browser_vision

1
scripts/ci-cron-validate.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""CI: Validate cron fleet health. Exit 1 on systemic failures."""
import sys

1
scripts/ci_automation_gate.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
ci_automation_gate.py — Automated Quality Gate for Timmy Foundation CI.

1
scripts/config_drift.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
config_drift.py — Detect configuration drift across fleet nodes.

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
config_drift_detector.py — Detect config drift across fleet nodes.

1
scripts/config_template.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Config Template System — Environment-Specific Overlays (Issue #696)

1
scripts/config_validate.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
config-validate — Pre-deploy validation for timmy-config YAML files.

1
scripts/config_validator.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
config_validator.py — Validate all YAML/JSON config files in timmy-config.

1
scripts/cron-audit-662.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Cron Fleet Audit Script — #662

1
scripts/cron_audit.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Cron Job Audit — Identify erroring jobs, categorize health, recommend actions.

1
scripts/cross_repo_test.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[OPS] Cross-Repo Test Suite
Part of the Gemini Sovereign Infrastructure Suite.

1
scripts/diagram_meaning_extractor.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
import json
from hermes_tools import browser_navigate, browser_vision

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
fleet-dashboard.py -- Timmy Foundation Fleet Status Dashboard.

1
scripts/fleet_llama.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[OPS] llama.cpp Fleet Manager
Part of the Gemini Sovereign Infrastructure Suite.

1
scripts/foundation_accessibility_audit.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
foundation_accessibility_audit.py — Multimodal Visual Accessibility Audit.

1
scripts/generate-crisis-direct-suicidal-pairs.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
import argparse
import json
from pathlib import Path

1
scripts/generate_scene_descriptions.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Auto-generate scene descriptions from image/video assets.

1
scripts/gitea_webhook_handler.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[OPS] Gitea Webhook Handler
Part of the Gemini Sovereign Infrastructure Suite.

1
scripts/hash_dedup.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
hash_dedup.py — Deduplication with bounded hash storage.

1
scripts/health_dashboard.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
health_dashboard.py — Sovereign Health & Observability Dashboard.

1
scripts/kaizen_retro.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Kaizen Retro — Automated retrospective after every burn cycle.

1
scripts/knowledge_base.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""knowledge_base.py - GOFAI symbolic knowledge base for the Timmy Foundation fleet.
A classical AI knowledge representation system: stores facts as ground atoms,

1
scripts/matrix_glitch_detect.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
matrix_glitch_detect.py — 3D World Visual Artifact Detection for The Matrix.

1
scripts/model_eval.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[EVAL] Model Evaluation Harness
Part of the Gemini Sovereign Infrastructure Suite.

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
muda_audit.py — Weekly waste audit for the Timmy Foundation fleet.

1
scripts/nexus_smoke_test.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
nexus_smoke_test.py — Visual Smoke Test for The Nexus.

1
scripts/normalize-code-blocks.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
normalize-code-blocks.py — Fix inconsistent indentation in training data code blocks.

1
scripts/normalize_code_blocks.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
normalize-code-blocks.py — Fix inconsistent indentation in training data code blocks.

1
scripts/nostur_status_query.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Nostur Status Query MVP
Read-only status responses sourced from Gitea truth.

1
scripts/phase_tracker.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[OPS] Phase Progression Tracker
Part of the Gemini Sovereign Infrastructure Suite.

1
scripts/pr-backlog-triage.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
pr-backlog-triage.py — Analyze and triage open PR backlog.

1
scripts/pr-triage-automation.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
pr-backlog-triage.py — Analyze and triage open PR backlog.

1
scripts/pr_backlog_triage.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
pr_backlog_triage.py — Automated PR backlog analysis for Gitea repos (Issue #658).

1
scripts/provision_wizard.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[OPS] Automated VPS Provisioning System (Von Neumann as Code)
Part of the Gemini Sovereign Infrastructure Suite.

1
scripts/quality_gate_integration.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
Quality Gate Integration — Pipeline Orchestrator Hook

1
scripts/reset_pipeline_state.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
reset_pipeline_state.py — Daily reset for pipeline_state.json

1
scripts/self_healing.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[OPS] Self-Healing Infrastructure
Part of the Gemini Sovereign Infrastructure Suite.

1
scripts/skill_installer.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[OPS] Sovereign Skill Installer
Part of the Gemini Sovereign Infrastructure Suite.

1
scripts/strips_planner.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""strips_planner.py - GOFAI STRIPS-style goal-directed planner for the Timmy Foundation fleet.
Implements a classical means-ends analysis (MEA) planner over a STRIPS action

1
scripts/symbolic_reasoner.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""symbolic_reasoner.py — Forward-chaining rule engine for the Timmy Foundation fleet.
A classical GOFAI approach: declarative IF-THEN rules evaluated over a

1
scripts/task_gate.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""Task Gate — Pre-task and post-task quality gates for fleet agents.
This is the missing enforcement layer between the orchestrator dispatching

1
scripts/telemetry.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
[OPS] Telemetry Pipeline v2
Part of the Gemini Sovereign Infrastructure Suite.

1
scripts/temporal_reasoner.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""temporal_reasoner.py - GOFAI temporal reasoning engine for the Timmy Foundation fleet.
A symbolic temporal constraint network (TCN) for scheduling and ordering events.

1
scripts/test_reset_pipeline_state.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""Tests for scripts/reset_pipeline_state.py — 10 tests."""
import json

1
scripts/token-tracker.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""Token Budget Tracker -- real-time spend dashboard for pipelines."""
import argparse, json, os, sqlite3, sys, time

1
scripts/token_budget.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
token_budget.py — Daily token budget tracker for pipeline orchestration.

1
scripts/token_optimizer.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
token_optimizer.py — Token Efficiency & Optimization for the Timmy Foundation.

1
scripts/token_tracker.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
token_tracker.py — Pipeline Token Budget Tracker

1
scripts/tower_visual_mapper.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
tower_visual_mapper.py — Holographic Map of The Tower Architecture.

1
scripts/validate-scene-data.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
validate-scene-data.py — Validate scene description JSONL files against schema.

1
scripts/visual_pr_reviewer.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
import json
from hermes_tools import browser_navigate, browser_vision

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
augment_pairs.py — Training data augmentation: paraphrase and translate.

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
generate_scene_descriptions.py — Auto-generate scene descriptions from image/video.

1
training/scripts/quality_filter.py Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
import json,sys,re,os
from pathlib import Path