Compare commits
2 Commits
step35/443
...
step35/339
| Author | SHA1 | Date | |
|---|---|---|---|
| 167697c1ed | |||
|
|
1c82a2a560 |
1
bin/banned_provider_scan.py
Normal file → Executable file
1
bin/banned_provider_scan.py
Normal file → Executable 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
1
bin/conflict_detector.py
Normal file → Executable 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
1
bin/context-overflow-guard.py
Normal file → Executable 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
1
bin/crucible_mcp_server.py
Normal file → Executable 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
1
bin/deadman-fallback.py
Normal file → Executable 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
1
bin/glitch_patterns.py
Normal file → Executable 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
1
bin/harm_facilitation_adversary.py
Normal file → Executable 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
1
bin/matrix_glitch_detector.py
Normal file → Executable 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
1
bin/model-fallback-verify.py
Normal file → Executable 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
|
||||
|
||||
@@ -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
1
bin/pr-checklist.py
Normal file → Executable 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
1
bin/preflight-provider-check.py
Normal file → Executable 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
1
bin/provider-health-monitor.py
Normal file → Executable 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
1
bin/quality-gate.py
Normal file → Executable 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
1
bin/soul_eval_gate.py
Normal file → Executable 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
1
bin/validate_config.py
Normal file → Executable file
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Config Validator -- pre-deploy YAML validation for timmy-config sidecar.
|
||||
|
||||
|
||||
10
deploy.sh
10
deploy.sh
@@ -79,6 +79,16 @@ if [ -d "$SCRIPT_DIR/cron" ]; then
|
||||
log "cron/ -> $HERMES_HOME/cron/"
|
||||
fi
|
||||
|
||||
|
||||
# === Deploy agent extensions (sidecar-provided agent modules) ===
|
||||
if [ -d "$SCRIPT_DIR/extensions" ]; then
|
||||
mkdir -p "$HERMES_HOME/agent"
|
||||
for f in "$SCRIPT_DIR"/extensions/*.py; do
|
||||
[ -f "$f" ] && cp "$f" "$HERMES_HOME/agent/"
|
||||
done
|
||||
log "extensions/ -> $HERMES_HOME/agent/ (sidecar extensions)"
|
||||
fi
|
||||
|
||||
# === Deploy bin (operational scripts) ===
|
||||
for f in "$SCRIPT_DIR"/bin/*; do
|
||||
[ -f "$f" ] && cp "$f" "$HERMES_HOME/bin/"
|
||||
|
||||
127
docs/AGENT_EXTENSION_MIGRATION.md
Normal file
127
docs/AGENT_EXTENSION_MIGRATION.md
Normal file
@@ -0,0 +1,127 @@
|
||||
# Agent Extension Migration — SIDECAR-3
|
||||
|
||||
**Issue:** #339
|
||||
**Created:** 2026-04-07
|
||||
**Status:** In Progress — core extensions ported, remaining work documented
|
||||
|
||||
## Overview
|
||||
|
||||
`hermes-agent/agent/` contains many custom Python modules that are not part of the upstream NousResearch/hermes-agent codebase. These extensions need to be restructured as timmy-config skills or runtime patches so that hermes-agent can remain clean (no custom files).
|
||||
|
||||
## Assessment Summary
|
||||
|
||||
Of the 19 custom modules found in `agent/` (via diff against upstream):
|
||||
|
||||
| Module | Status | Action | Notes |
|
||||
|--------|--------|--------|-------|
|
||||
| a2a_mtls.py | **ARCHIVED** | Moved to agent/archive/ | A2A mutual TLS server — unused |
|
||||
| agent_card.py | **ARCHIVED** | Moved to agent/archive/ | A2A agent discovery — unused |
|
||||
| circuit_breaker.py | **ARCHIVED** | Moved to agent/archive/ | Error cascade protection — unused |
|
||||
| context_budget.py | **ARCHIVED** | Moved to agent/archive/ | Context window overflow guard — unused |
|
||||
| crisis_resources.py | **ARCHIVED** | Moved to agent/archive/ | 988 integration — unused |
|
||||
| input_sanitizer.py | **ARCHIVED** | Moved to agent/archive/ | Jailbreak detection — currently unused (module exists but not imported) |
|
||||
| mtls.py | **ARCHIVED** | Moved to agent/archive/ | Mutual TLS support — unused |
|
||||
| privacy_filter.py | **PORTED** | Now in `extensions/privacy_filter.py` | Vitalik Pattern 2 — PII stripping, **IMPORTED by run_agent.py** |
|
||||
| profile_isolation.py | **ARCHIVED** | Moved to agent/archive/ | Profile session isolation — unused |
|
||||
| provider_preflight.py | **ARCHIVED** | Moved to agent/archive/ | Provider validation — unused |
|
||||
| self_modify.py | **ARCHIVED** | Moved to agent/archive/ | Self-modifying prompt engine — unused |
|
||||
| session_compactor.py | **ARCHIVED** | Moved to agent/archive/ | Session compaction — unused (test exists but not production) |
|
||||
| shield.py | **PORTED** | Now in `extensions/shield.py` | Crisis & jailbreak detection — **IMPORTED by run_agent.py** |
|
||||
| smart_model_routing.py | **PORTED** | Now in `extensions/smart_model_routing.py` | Cheap vs strong model routing — **IMPORTED by cli.py** |
|
||||
| telemetry_logger.py | **ARCHIVED** | Moved to agent/archive/ | Telemetry logging — unused |
|
||||
| time_aware_routing.py | **ARCHIVED** | Moved to agent/archive/ | Time-based routing — unused |
|
||||
| token_budget.py | **ARCHIVED** | Moved to agent/archive/ | Token budget guard — unused |
|
||||
| tool_fixation_detector.py | **ARCHIVED** | Moved to agent/archive/ | Tool loop detection — unused |
|
||||
| tool_orchestrator.py | **ARCHIVED** | Moved to agent/archive/ | Tool execution orchestration — unused |
|
||||
|
||||
**Total custom modules:** 19
|
||||
**Archived (dead/unused):** 16
|
||||
**Ported to timmy-config (live):** 3
|
||||
|
||||
## What Changed
|
||||
|
||||
### 1. Created `extensions/` directory in timmy-config
|
||||
|
||||
New sidecar-provided agent modules that are copied to `~/.hermes/agent/` by `deploy.sh`:
|
||||
|
||||
```
|
||||
extensions/
|
||||
├── __init__.py # Package marker
|
||||
├── privacy_filter.py # PrivacyFilter + sanitize_messages()
|
||||
├── shield.py # scan_text(), is_crisis(), is_jailbreak()
|
||||
└── smart_model_routing.py # needs_strong_model(), should_use_cheap_model()
|
||||
```
|
||||
|
||||
These re-implement the essential logic of the original modules with minimal dependencies. They can be enriched over time.
|
||||
|
||||
### 2. Updated `deploy.sh`
|
||||
|
||||
Added deployment step:
|
||||
|
||||
```bash
|
||||
# === Deploy agent extensions (sidecar-provided agent modules) ===
|
||||
if [ -d "$SCRIPT_DIR/extensions" ]; then
|
||||
mkdir -p "$HERMES_HOME/agent"
|
||||
for f in "$SCRIPT_DIR"/extensions/*.py; do
|
||||
[ -f "$f" ] && cp "$f" "$HERMES_HOME/agent/"
|
||||
done
|
||||
log "extensions/ -> $HERMES_HOME/agent/ (sidecar extensions)"
|
||||
fi
|
||||
```
|
||||
|
||||
### 3. Archived dead modules in hermes-agent
|
||||
|
||||
All 16 unused custom modules were moved to `hermes-agent/agent/archive/` to preserve history and allow future upstream PRs.
|
||||
|
||||
## Remaining Work
|
||||
|
||||
### High Priority (Upstream Contributions)
|
||||
|
||||
The following modules are already in upstream NousResearch/hermes-agent — no action needed:
|
||||
- `anthropic_adapter.py`
|
||||
- `auxiliary_client.py`
|
||||
- `context_compressor.py`
|
||||
- `display.py`
|
||||
- `error_classifier.py`
|
||||
- `insights.py`
|
||||
- `memory_manager.py`
|
||||
- `model_metadata.py`
|
||||
- `prompt_builder.py`
|
||||
- `prompt_caching.py`
|
||||
- `rate_limit_tracker.py`
|
||||
- `retry_utils.py`
|
||||
- `skill_commands.py`
|
||||
- `subdirectory_hints.py`
|
||||
- `title_generator.py`
|
||||
- `trajectory.py`
|
||||
- `usage_pricing.py`
|
||||
- (and others found in upstream)
|
||||
|
||||
### Future Migration (when needed)
|
||||
|
||||
These modules are active but minimal; if richer functionality is required later:
|
||||
- **`context_references.py`** — not custom? appears upstream — verify
|
||||
- **`credential_pool.py`** — appears not custom either
|
||||
- **`memory_provider.py`** — possible custom
|
||||
- **`redact.py`** — likely custom but unused
|
||||
- **`copilot_acp_client.py`** — ACP integration, monitor
|
||||
|
||||
### Hermes-Agent Side (separate PR)
|
||||
|
||||
After this timmy-config PR merges:
|
||||
1. Rebase `hermes-agent` on latest upstream to drop any now-archived files
|
||||
2. In `hermes-agent/agent/`, the files `shield.py`, `privacy_filter.py`, `smart_model_routing.py` should be removed or replaced with stubs that import from timmy-config (requires path injection)
|
||||
3. Until timmy-config is deployed everywhere, a compatibility shim may be needed
|
||||
|
||||
## Acceptance Criteria Checklist
|
||||
|
||||
- [x] Each file assessed: useful (port) or dead (archive)
|
||||
- [x] 16 dead files archived in `hermes-agent/agent/archive/`
|
||||
- [x] 3 useful files restructured as timmy-config extensions in `extensions/`
|
||||
- [ ] 3 useful files removed from hermes-agent (follow-up)
|
||||
- [ ] No custom Python files remain in hermes-agent/agent/ that aren't upstream **(pending follow-up)**
|
||||
|
||||
## References
|
||||
|
||||
- Epic: #336 (SIDECAR-3)
|
||||
- Upstream: https://github.com/nousresearch/hermes-agent/tree/main/agent
|
||||
7
extensions/__init__.py
Normal file
7
extensions/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
"""Timmy-side agent extensions.
|
||||
|
||||
These are custom agent modules that live in timmy-config
|
||||
and get deployed to ~/.hermes/agent/ at runtime.
|
||||
They replace files previously in hermes-agent/agent/ that were
|
||||
upstream-contributed or restructured.
|
||||
"""
|
||||
46
extensions/privacy_filter.py
Normal file
46
extensions/privacy_filter.py
Normal file
@@ -0,0 +1,46 @@
|
||||
"""Privacy Filter — strip PII from context before remote API calls.
|
||||
|
||||
Reimplements agent/privacy_filter.py as a timmy-config extension.
|
||||
Original: https://github.com/nousresearch/hermes-agent/... (custom extension)
|
||||
|
||||
Implements Vitalik's Pattern 2: a local model strips private data before
|
||||
passing queries to remote LLMs.
|
||||
"""
|
||||
|
||||
import re
|
||||
from typing import List, Dict, Any
|
||||
|
||||
# Simple PII patterns for demo – the original had more sophisticated models
|
||||
EMAIL_RE = re.compile(r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}')
|
||||
PHONE_RE = re.compile(r'\b(\+?1[-.\s]?)?\(?[0-9]{3}\)?[-.\s]?[0-9]{3}[-.\s]?[0-9]{4}\b')
|
||||
SSN_RE = re.compile(r'\b[0-9]{3}-[0-9]{2}-[0-9]{4}\b')
|
||||
CREDIT_CARD_RE = re.compile(r'\b(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14})\b')
|
||||
IP_RE = re.compile(r'\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b')
|
||||
|
||||
def _redact_match(text: str, pattern: re.Pattern, replacement: str = '[REDACTED]') -> str:
|
||||
return pattern.sub(replacement, text)
|
||||
|
||||
def sanitize_text(text: str) -> str:
|
||||
"""Remove PII from a single string."""
|
||||
text = _redact_match(text, EMAIL_RE)
|
||||
text = _redact_match(text, PHONE_RE)
|
||||
text = _redact_match(text, SSN_RE)
|
||||
text = _redact_match(text, CREDIT_CARD_RE)
|
||||
text = _redact_match(text, IP_RE)
|
||||
return text
|
||||
|
||||
def sanitize_messages(messages: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
|
||||
"""Sanitize OpenAI-style chat messages in-place."""
|
||||
out = []
|
||||
for msg in messages:
|
||||
content = msg.get('content', '')
|
||||
if isinstance(content, str):
|
||||
msg = dict(msg)
|
||||
msg['content'] = sanitize_text(content)
|
||||
out.append(msg)
|
||||
return out
|
||||
|
||||
class PrivacyFilter:
|
||||
"""Callable filter for message history."""
|
||||
def __call__(self, messages: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
|
||||
return sanitize_messages(messages)
|
||||
28
extensions/shield.py
Normal file
28
extensions/shield.py
Normal file
@@ -0,0 +1,28 @@
|
||||
"""Shield integration — crisis detection and jailbreak pattern scanning.
|
||||
|
||||
This module restructures agent/shield.py as a timmy-config extension.
|
||||
Original file existed in hermes-agent/agent/shield.py and imported
|
||||
`tools.shield.detector`. We re-export the same interface.
|
||||
"""
|
||||
|
||||
from tools.shield.detector import ShieldDetector, Verdict, CRISIS_SYSTEM_PROMPT, SAFE_SIX_MODELS
|
||||
|
||||
_detector = None
|
||||
|
||||
def get_detector():
|
||||
"""Get or create the global Shield detector instance."""
|
||||
global _detector
|
||||
if _detector is None:
|
||||
_detector = ShieldDetector()
|
||||
return _detector
|
||||
|
||||
def scan_text(text: str):
|
||||
"""Scan text for jailbreaks and crisis signals using SHIELD."""
|
||||
detector = get_detector()
|
||||
return detector.detect(text)
|
||||
|
||||
def is_crisis(verdict: str) -> bool:
|
||||
return verdict in [Verdict.CRISIS_DETECTED.value, Verdict.CRISIS_UNDER_ATTACK.value]
|
||||
|
||||
def is_jailbreak(verdict: str) -> bool:
|
||||
return verdict in [Verdict.JAILBREAK_DETECTED.value, Verdict.CRISIS_UNDER_ATTACK.value]
|
||||
49
extensions/smart_model_routing.py
Normal file
49
extensions/smart_model_routing.py
Normal file
@@ -0,0 +1,49 @@
|
||||
"""Smart model routing — decide cheap vs strong model.
|
||||
|
||||
Reimplements agent/smart_model_routing.py as a timmy-config extension.
|
||||
Original was a custom hermes-agent module.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import re
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
_COMPLEX_KEYWORDS = {
|
||||
"debug", "debugging", "implement", "implementation", "refactor", "patch",
|
||||
"traceback", "stacktrace", "exception", "error", "analyze", "analysis",
|
||||
"investigate", "architecture", "design", "compare", "benchmark", "optimize",
|
||||
"optimise", "review", "terminal", "shell", "tool", "tools", "pytest",
|
||||
"test", "tests", "plan", "planning", "delegate", "subagent", "cron",
|
||||
"docker", "kubernetes",
|
||||
}
|
||||
|
||||
_URL_RE = re.compile(r"https?://|www\.", re.IGNORECASE)
|
||||
|
||||
def _contains_complex_keyword(text: str) -> bool:
|
||||
lowered = text.lower()
|
||||
return any(word in lowered for word in _COMPLEX_KEYWORDS)
|
||||
|
||||
def _contains_url(text: str) -> bool:
|
||||
return bool(_URL_RE.search(text))
|
||||
|
||||
def needs_strong_model(messages: list[Dict[str, Any]], threshold: float = 0.3) -> bool:
|
||||
"""Return True if the request needs a strong (expensive) model."""
|
||||
if not messages:
|
||||
return False
|
||||
text = messages[-1].get('content', '')
|
||||
if not text:
|
||||
return False
|
||||
keyword_hits = sum(1 for kw in _COMPLEX_KEYWORDS if kw in text.lower())
|
||||
total_keywords = len(_COMPLEX_KEYWORDS)
|
||||
score = keyword_hits / total_keywords if total_keywords else 0.0
|
||||
if score >= threshold:
|
||||
return True
|
||||
if _contains_url(text):
|
||||
return True
|
||||
return False
|
||||
|
||||
def should_use_cheap_model(messages: list[Dict[str, Any]], cheap_model: str, strong_model: str) -> bool:
|
||||
"""Return True if the request can safely use the cheap model."""
|
||||
return not needs_strong_model(messages)
|
||||
@@ -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
1
pipeline/nightly_scheduler.py
Normal file → Executable 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
1
pipeline/orchestrator.py
Normal file → Executable 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
1
pipeline/quality_gate.py
Normal file → Executable 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
1
scripts/adr_manager.py
Normal file → Executable 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
1
scripts/adversary_harness.py
Normal file → Executable 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
1
scripts/agent_dispatch.py
Normal file → Executable 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
1
scripts/agent_guardrails.py
Normal file → Executable 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
1
scripts/architecture_linter.py
Normal file → Executable 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
1
scripts/architecture_linter_v2.py
Normal file → Executable 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
1
scripts/bezalel_builder_wizard.py
Normal file → Executable 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
1
scripts/captcha_bypass_handler.py
Normal file → Executable 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
1
scripts/ci-cron-validate.py
Normal file → Executable 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
1
scripts/ci_automation_gate.py
Normal file → Executable 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
1
scripts/config_drift.py
Normal file → Executable file
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
config_drift.py — Detect configuration drift across fleet nodes.
|
||||
|
||||
|
||||
@@ -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
1
scripts/config_template.py
Normal file → Executable 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
1
scripts/config_validate.py
Normal file → Executable 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
1
scripts/config_validator.py
Normal file → Executable 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
1
scripts/cron-audit-662.py
Normal file → Executable 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
1
scripts/cron_audit.py
Normal file → Executable 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
1
scripts/cross_repo_test.py
Normal file → Executable 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
1
scripts/diagram_meaning_extractor.py
Normal file → Executable file
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python3
|
||||
import json
|
||||
from hermes_tools import browser_navigate, browser_vision
|
||||
|
||||
|
||||
@@ -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
1
scripts/fleet_llama.py
Normal file → Executable 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
1
scripts/foundation_accessibility_audit.py
Normal file → Executable 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
1
scripts/generate-crisis-direct-suicidal-pairs.py
Normal file → Executable 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
1
scripts/generate_scene_descriptions.py
Normal file → Executable 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
1
scripts/gitea_webhook_handler.py
Normal file → Executable 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
1
scripts/hash_dedup.py
Normal file → Executable 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
1
scripts/health_dashboard.py
Normal file → Executable 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
1
scripts/kaizen_retro.py
Normal file → Executable 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
1
scripts/knowledge_base.py
Normal file → Executable 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
1
scripts/matrix_glitch_detect.py
Normal file → Executable 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
1
scripts/model_eval.py
Normal file → Executable file
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
[EVAL] Model Evaluation Harness
|
||||
Part of the Gemini Sovereign Infrastructure Suite.
|
||||
|
||||
@@ -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
1
scripts/nexus_smoke_test.py
Normal file → Executable 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
1
scripts/normalize-code-blocks.py
Normal file → Executable 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
1
scripts/normalize_code_blocks.py
Normal file → Executable 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
1
scripts/nostur_status_query.py
Normal file → Executable 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
1
scripts/phase_tracker.py
Normal file → Executable 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
1
scripts/pr-backlog-triage.py
Normal file → Executable 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
1
scripts/pr-triage-automation.py
Normal file → Executable 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
1
scripts/pr_backlog_triage.py
Normal file → Executable 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
1
scripts/provision_wizard.py
Normal file → Executable 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
1
scripts/quality_gate_integration.py
Normal file → Executable 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
1
scripts/reset_pipeline_state.py
Normal file → Executable 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
1
scripts/self_healing.py
Normal file → Executable 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
1
scripts/skill_installer.py
Normal file → Executable 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
1
scripts/strips_planner.py
Normal file → Executable 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
1
scripts/symbolic_reasoner.py
Normal file → Executable 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
1
scripts/task_gate.py
Normal file → Executable 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
1
scripts/telemetry.py
Normal file → Executable 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
1
scripts/temporal_reasoner.py
Normal file → Executable 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
1
scripts/test_reset_pipeline_state.py
Normal file → Executable 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
1
scripts/token-tracker.py
Normal file → Executable 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
1
scripts/token_budget.py
Normal file → Executable 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
1
scripts/token_optimizer.py
Normal file → Executable 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
1
scripts/token_tracker.py
Normal file → Executable 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
1
scripts/tower_visual_mapper.py
Normal file → Executable 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
1
scripts/validate-scene-data.py
Normal file → Executable 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
1
scripts/visual_pr_reviewer.py
Normal file → Executable file
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python3
|
||||
import json
|
||||
from hermes_tools import browser_navigate, browser_vision
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
augment_pairs.py — Training data augmentation: paraphrase and translate.
|
||||
|
||||
|
||||
@@ -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
1
training/scripts/quality_filter.py
Normal file → Executable file
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python3
|
||||
import json,sys,re,os
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user