Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (claude): untrack a live-instance scan report, name migration 214's shipped-part trade-off
[._.]/ Adam Eivy162f94e02da2
diff --git a/data/brain/scans/014804d1-e85a-4e94-a8cc-aebcbe31ca33.md b/data/brain/scans/014804d1-e85a-4e94-a8cc-aebcbe31ca33.mddeleted file mode 100644index 46913e171d..0000000000--- a/data/brain/scans/014804d1-e85a-4e94-a8cc-aebcbe31ca33.md+++ /dev/null@@ -1,137 +0,0 @@-# Scan Report — hermes-desktop-avatar (2026-07-28)--Scanned: `<repo-root>/data/repos/erenciracioglu-dotcom/hermes-desktop-avatar`-Project types: Python-Files inventoried: 58 (31 MiB on disk)-Git remote: `https://github.com/erenciracioglu-dotcom/hermes-desktop-avatar.git`-First commit: 2026-07-28T07:02:29Z-Last commit: 2026-07-28T07:02:29Z--> This was a static, read-only audit. No code from the scanned directory was executed, no dependencies were installed, and no URL or IP found in the tree was fetched. Findings are best-effort rather than proof of intent.->-> Do not paste this report into an LLM without manual review. Extracted source snippets are delimited as untrusted data. Do not click any listed endpoint; investigate unfamiliar hosts only from a sandbox.--## Risk Summary--| Severity | Count | Categories |-|---|---:|---|-| Critical | 0 | — |-| High | 4 | camera-capable Git hook; screenshot capture/transmission; credentialed gateway request |-| Medium | 6 | configurable network gateway; screen capture; `.env` writes; command/process execution |-| Low | 3 | loopback health check; TTS network dependency; sprite-processing subprocess |-| Info | 3 | Python packaging metadata; console entry point; opaque media asset |--## Critical Findings--None identified by static analysis.--## Manifest & Lifecycle Hooks--- `pyproject.toml` defines six ordinary PyPI dependencies and a console entry point (`avatar.__main__:main`). It contains no install-time arbitrary-code hook, custom build backend, URL dependency, or editable dependency.-- `requirements.txt` mirrors those six dependencies. No direct URL, Git, or editable requirement was found.-- `run.bat` starts the application only after a pre-existing virtual environment is present; it does not install dependencies or download code.-- `.git/config` contains a conventional HTTPS origin and no `core.fsmonitor`, `core.hooksPath`, `core.sshCommand`, credential helper, or other Git configuration execution vector.-- A local `.git/hooks/gitshot-pc` file is present. This is not enough to establish that it is version-controlled or that Git invokes it automatically, but if invoked by local GitShot tooling it launches `imagesnap` in the background and writes a camera image under the invoking user's GitShot directory. Treat the clone as locally contaminated until the hook's provenance is understood.--## Network Endpoints Referenced--These endpoints were found in source or documentation and were not fetched.--| URL / Host | File:Line | Notes |-|---|---|---|-| `http://127.0.0.1:8642` | `src/avatar/runtime_agent.py:28` | Default loopback Hermes gateway |-| `https://github.com/erenciracioglu-dotcom/hermes-desktop-avatar/raw/main/assets/media/Nora_Intro_Short.mp4` | `README.md` | Preview-media link |-| `https://hermes-agent.nousresearch.com/docs` | `README.md` | Documentation link |--The gateway URL is configurable through an environment variable. Source sends chat requests to its `/v1/chat/completions` endpoint with a bearer credential. The default is loopback, but a user-configured value could be remote; static analysis cannot establish the configured destination at runtime.--## Filesystem & Credential Reach--1. **HIGH — camera-capable hook**: `.git/hooks/gitshot-pc:5` executes a background `imagesnap` command when that hook is invoked. Snippet:-- ```text- <scanned-content>system "imagesnap -q -w 3 #{file} &"</scanned-content>- ```--2. **HIGH — screenshot capture and follow-up submission**: `src/avatar/screen_capture.py` captures whole-screen windows; `src/avatar/controller.py:531` passes an image path to the chat operation; and `src/avatar/runtime_agent.py:159` serializes an image as a data URL. This is a privacy-sensitive capability. The inspected flow indicates it is feature-related rather than covert, but it should be used only after confirming the destination gateway.--3. **HIGH — credentialed outbound request**: `src/avatar/runtime_agent.py:550` posts to the configured gateway with a bearer API key. No hardcoded credential was found. Snippet:-- ```text- <scanned-content>response = session.post(f"{GATEWAY_URL}/v1/chat/completions", headers={"Authorization": f"Bearer {API_KEY}"})</scanned-content>- ```--4. **MEDIUM — gateway credential persistence**: `src/avatar/gateway_manager.py:289,317` reads and appends a `.env` file in its configured Hermes home. This persists locally configured gateway credentials; verify permissions on that directory.--## Persistence & Privilege--No LaunchAgent, systemd, cron, Registry Run key, scheduled-task, `sudo`, setuid, or administrator-escalation pattern was identified in scanned source.--The GitShot hook is a local process-execution concern, but its nonstandard hook name means it is not evidence of automatic Git persistence by itself.--## Secrets & Suspicious URLs--No live-looking AWS, GitHub, Google, Slack, Stripe, private-key, or JWT material was identified. No IP-literal public endpoint, onion host, dynamic-DNS host, anonymous file host, or punycode host was identified.--## Code Execution & Obfuscation--- **MEDIUM** `src/avatar/gateway_manager.py:511` builds a Windows `cmd.exe /c` invocation for a Hermes CLI command.-- **MEDIUM** `src/avatar/gateway_manager.py:560` uses `subprocess.Popen` to start the configured Hermes CLI process.-- **LOW** `scripts/batch_build_sprites.py:108` uses `subprocess.run` for its sprite-processing command.-- No `eval`, dynamic function construction, base64-to-execution path, VM execution, long char-code reconstruction, or other obfuscation pattern was identified.--## Vulnerable / Suspicious Dependencies--| Package | Version requirement | Ecosystem | Issue | Severity | Fix |-|---|---|---|---|---|---|-| PySide6 | `>=6.6.0,<6.9` | PyPI | Direct dependency; no suspicious source form | Info | Resolve and audit in an isolated environment |-| requests | `>=2.31.0` | PyPI | Direct dependency; used for the gateway client | Info | Resolve and audit in an isolated environment |-| opencv-python | `>=4.9.0` | PyPI | Direct dependency | Info | Resolve and audit in an isolated environment |-| numpy | `>=1.26.0` | PyPI | Direct dependency | Info | Resolve and audit in an isolated environment |-| edge-tts | `>=6.1.0` | PyPI | Network-capable TTS dependency | Low | Confirm its service/data policy before use |-| Pillow | `>=10.0.0` | PyPI | Direct dependency | Info | Resolve and audit in an isolated environment |--Registry metadata and OSV advisory checks were not performed: this runtime exposes no hardened GET-only registry-fetch interface matching the workflow's required WebFetch contract, and OSV requires POST. Run `pip-audit` only after installing into a disposable, isolated environment.--## Binary & Opaque Content--| File | Size | Notes |-|---|---:|---|-| `assets/media/Nora_Intro_Short.mp4` | 15,962,480 bytes | Opaque media; listed only, not opened or decoded |--No native binaries, compiled Python bytecode, WASM, Java archives, or minified JavaScript bundles were found outside Git internals.--## Safety Recommendations--- Do not run this clone on a credentialed desktop until the nonstandard GitShot camera hook is removed or its local provenance is verified. Inspect it manually; do not invoke it.-- Run the app only in a disposable VM or separate OS account with no browser sessions, SSH keys, cloud credentials, or production API tokens.-- Keep `HERMES_GATEWAY_URL` at a verified loopback endpoint unless a remote gateway is intentionally chosen and its TLS/authentication/privacy properties have been reviewed.-- Treat screenshot requests as sensitive: confirm the gateway destination before enabling screen-aware features.-- Install with a fresh virtual environment and inspect resolved packages before first launch; then run `pip-audit` from that isolated environment.-- Restrict outbound network while testing and observe any connection attempts.--## Known Limitations--- Static analysis cannot prove runtime intent, detect time- or environment-triggered payloads, or identify future supply-chain compromise.-- Direct dependencies were inventoried, but no package-manager resolution, transitive dependency inspection, install, build, or execution occurred.-- The MP4 asset and Git object store were not decoded or executed.-- The exact runtime value of the configurable gateway URL was intentionally not inspected.-- OSV lookups require POST and were unavailable through the prescribed fetch contract; a later isolated `pip-audit` remains necessary.--## What I Did NOT Do--- I did not execute code, scripts, hooks, package managers, or binaries from the scanned directory.-- I did not fetch a URL or IP found inside the scanned directory.-- I did not install or resolve dependencies.-- I did not modify the scanned repository.--## Methodology--- Phase 0: path validation, inventory, symlink and VCS-configuration inspection.-- Phase 1: Python manifest and launcher audit.-- Phase 2: independent static scans for execution/obfuscation, network use, filesystem/credential reach, persistence/privilege, and secret patterns.-- Phase 3: opaque-content inventory without decoding.-- Phase 4: direct dependencies recorded; registry/OSV lookup unavailable under the required hardened fetch contract.-- Phase 5: redacted static report.--## Verdict: CAUTIONdiff --git a/scripts/migrations/214-fix-hey-ho-fourth-phrase.js b/scripts/migrations/214-fix-hey-ho-fourth-phrase.jsindex 196fc8cbe6..fb14f16651 100644--- a/scripts/migrations/214-fix-hey-ho-fourth-phrase.js+++ b/scripts/migrations/214-fix-hey-ho-fourth-phrase.js@@ -131,12 +131,20 @@ export default {// the exact 6-bar shipped string. Deep-clone the parts so the persisted record// can't share array/object identity with the in-memory seed.//- // Parts the user added themselves are preserved. `scoreParts` is independently+ // Parts the user ADDED themselves are preserved. `scoreParts` is independently// editable (SongScoreParts' "Add part" and the AI-derive path both append a// part with a generated id), so a stock melody can still carry a hand-written// bass line. Rewriting the whole array — as a naive replace would — would// delete that work with no backup, which is exactly the clobbering this// migration's per-field gating exists to prevent.+ //+ // An EDIT to a shipped voice (`part-heyho-v2`/`v3`) is deliberately NOT+ // preserved, and this is the one place the per-field gating is knowingly+ // traded away: the lead grows from 6 bars to 8 here, so a voice still written+ // against the 6-bar lead enters on the wrong beat and the round no longer+ // lines up. A silently out-of-phase voice is worse than a reset one. Anyone+ // who retuned a shipped voice re-applies it against the 8-bar lead; the gate+ // above means this only ever runs on a stock, untouched score.if (round.score === OLD_HEY_HO_SCORE_6BAR) {round.score = NEW_HEY_HO_SCORE;const shippedIds = new Set(NEW_HEY_HO_SCORE_PARTS.map((p) => p.id));