[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DEN1D2VGSQVWXR676JFCJ8":3,"skill-same:01M6DEN1D2VGSQVWXR676JFCJ8":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":6,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6DEN1D2VGSQVWXR676JFCJ8","windows-hermes-code-verification",null,"Verify Hermes Python changes on Windows with focused tests.","zapabob\u002FSkills","zapabob","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130830376?v=4","01M6DBMYZAGRTFQDSQYW3W764P","峯岸 亮","01M6DBMZ3GKDSJ01NZ9XTZD7JD",2,"MIT","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Farchive\u002Fskill-md-reviewed\u002Fsha256\u002F3e\u002F3e867443e79d232b9fd488c5338d5c9832d77a95bea920c8d9cd45593566e27b\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"windows hermes code verification","windows","code","verification","hermes","Providers","driven","systematic","tests","pytest","operations","hermes agent","verify","review","file","code-review","development","debugging","test","python","2026-11-10 10:12:30",false,"---\r\nname: windows-hermes-code-verification\r\ndescription: \"Verify Hermes Python changes on Windows with focused tests.\"\r\nversion: 1.1.0\r\nauthor: Hermes Agent\r\nlicense: MIT\r\nplatforms: [windows]\r\nmetadata:\r\n  hermes:\r\n    tags: [windows, pytest, verification, debugging, hermes, providers, file-operations]\r\n    related_skills: [systematic-debugging, requesting-code-review, test-driven-development]\r\n---\r\n\r\n# Windows Hermes Code Verification\r\n\r\nUse this class-level workflow after modifying or investigating Hermes Python code on a Windows checkout, especially ACP adapters, file operations, provider routing, optional extras, and cross-platform path handling.\r\n\r\n## Goals\r\n\r\n- Reproduce the reported failure with the narrowest test first.\r\n- Distinguish environment\u002Fsetup failures from regressions in edited code.\r\n- Verify Windows-specific semantics such as CRLF\u002FBOM preservation and path handling.\r\n- Separate host-native path interpretation from target-platform path formatting.\r\n- Report focused green tests separately from full-suite status.\r\n\r\n## Workflow\r\n\r\n1. **Inventory first.** Read `AGENTS.md`, inspect `git status`, and identify the project interpreter and dependency declarations. Never treat the start-of-session workspace snapshot as current.\r\n2. **Reproduce narrowly — and confirm it still fails.** Run the exact named test(s) with the project interpreter and capture the full assertion\u002Fstack trace *before* changing code. A task brief that enumerates \"N failing tests\" can be stale relative to the current checkout: run each named test and only patch the ones that genuinely fail. In one session 3 of 6 \"failures\" already passed on the checkout — blind patching of already-green tests wastes effort and risks regressions.\r\n3. **Trace the data flow.** For path failures, inspect values inside Python before blaming MSYS: native Windows `pathlib` and `os.path` can turn POSIX-looking paths into backslash or mixed-separator paths. For byte-count failures, follow the value from caller input through normalization and disk write. For provider failures, follow explicit runtime configuration through fallback order and check for ambient credentials\u002Fconfiguration.\r\n4. **Classify production versus test assumptions.** Unconditional WSL conversion and host-native formatting of promised Linux\u002FTermux strings are production defects. Tests that mock only POSIX `HOME` semantics or hardcode `\u002F` while passing a Windows `Path` are test portability defects.\r\n5. **Check dependency state.** If an optional package is declared in `pyproject.toml` and pinned in `uv.lock`, install that pinned package into the active development venv. Hermes intentionally rejects wheel\u002Fsdist builds of the project itself, so `pip install '.[extra]'` may fail at the project build step; in that case install only the declared package directly and rerun the focused tests.\r\n6. **Make one root-cause fix.** Avoid broad fallback changes or platform-specific test hacks. For target-platform examples or commands, use target-specific formatting (`posixpath`\u002F`PurePosixPath` for Linux, WSL, and Termux) while keeping genuine filesystem probing native. For text writes, preserve the API's established logical payload-size contract independently from physical CRLF\u002FBOM bytes. For provider routing, incomplete explicit configuration must not silently select an unrelated globally configured provider.\r\n7. **Verify in layers.** Run changed-path `py_compile`, `git diff --check`, focused regression tests, and related subsystem tests. For a single test or small set, do **not** use `scripts\u002Frun_tests.sh` — it is too slow for focused verification. Invoke the venv interpreter directly:\r\n   ```bash\r\n   cd '\u002Fc\u002FUsers\u002F\u003Cuser>\u002FDocuments\u002FNew project\u002Fhermes-agent' && \\\r\n     .venv\u002FScripts\u002Fpython.exe -m pytest tests\u002Fplugins\u002F\u003Cfile>::\u003Ctest> -xvs 2>&1 | tail -20\r\n   ```\r\n   Then attempt the standard full runner with a Windows interpreter override only for full-suite status:\r\n   ```bash\r\n   HERMES_PYTHON='\u002Fc\u002FUsers\u002F\u003Cuser>\u002F...\u002F.venv\u002FScripts\u002Fpython.exe' \\\r\n     HERMES_TEST_WORKERS=1 bash scripts\u002Frun_tests.sh\r\n   ```\r\n8. **Report honestly.** Give exact pass counts and commands. State full-suite failures, timeouts, missing optional dependencies, and unrelated Desktop\u002FUI failures separately; focused passing tests do not make the whole repository green.\r\n\r\n## Loading a plugin module standalone (importlib)\r\n\r\nWhen you must invoke a plugin's Python directly from a shell — debugging,\r\ncron, or because the `hermes \u003Cplugin>` CLI is not registered — load its\r\n`core.py` as a module. Four Windows-specific traps block the naive pattern:\r\n\r\n1. **Register the module in `sys.modules` before `exec_module`.** Plugin\r\n   `core.py` usually declares `@dataclass` classes at module top level.\r\n   Loading with `spec_from_file_location(name, path)` + `module_from_spec` +\r\n   `exec_module` *without* first setting `sys.modules[name] = mod` raises\r\n   `AttributeError: 'NoneType' object has no attribute '__dict__'` (the\r\n   dataclass decorator cannot find its own module). Fix: assign to\r\n   `sys.modules` immediately after `module_from_spec`.\r\n2. **MSYS rewrites forward-slash path arguments.** Under Git Bash \u002F MSYS a\r\n   path passed as a Python string like `\u002Fc\u002FUsers\u002Fdownl\u002F...` is silently\r\n   converted by the shell to `C:\\c\\Users\\downl\\...` before Python sees it,\r\n   causing `FileNotFoundError: 'C:\\\\c\u002FUsers\u002F...\u002Fcore.py'`. Fix: prefix the\r\n   command with `export MSYS_NO_PATHCONV=1`, or pass native Windows paths\r\n   (e.g. `%USERPROFILE%\u002F...` — no leading slash — or `C:\\Users\\...`).\r\n3. **Use the venv interpreter, not bare `python`.** On Windows `python` is the\r\n   Microsoft Store stub: it prints `Python` and exits non-zero (49) without\r\n   running your script. Use the Hermes venv interpreter explicitly\r\n   (`\u003Crepo>\u002F.venv\u002FScripts\u002Fpython.exe`) and verify the plugin's deps\r\n   (`twitter_openapi_python`, `tweepy_authlib`, etc.) import there. `py -3`\r\n   works for general scripts but may lack plugin packages.\r\n4. **Put the repo root on `sys.path`.** Plugin `core.py` often imports\r\n   `hermes_constants`; insert the Hermes repo root before loading or imports\r\n   fail even though the plugin file itself is healthy.\r\n\r\nSee `references\u002Fstandalone-plugin-module-loading.md` for a copy-paste template\r\nthat discovers the plugin path (it may be under `~\u002F.hermes\u002Fplugins\u002F\u003Cname>\u002F`,\r\nnot `\u003Crepo>\u002Fplugins\u002F\u003Cname>\u002F`) and applies all four fixes.\r\n\r\n## Windows-specific checks\r\n\r\n- CRLF preservation can make physical file bytes larger than the logical UTF-8 input. Test both the returned API value and actual file contents.\r\n- `Path.as_uri()` and POSIX\u002FMSYS path translation can expose separate ACP resource-link failures. Do not conflate these with dependency installation or provider failures.\r\n- A `file:\u002F\u002F\u002FC:\u002F...` URI should remain a native drive path on Windows; translate it to `\u002Fmnt\u002F\u003Cdrive>\u002F...` only in WSL.\r\n- Python 3.8+ Windows `os.path.expanduser()` uses `USERPROFILE` or `HOMEDRIVE`\u002F`HOMEPATH`, not `HOME`; when a Git Bash\u002FTermux-facing contract explicitly uses `HOME`, expand `~` against that variable before falling back to `expanduser()`.\r\n- Windows asyncio pipe tests may fail with `WinError 6`; retain protocol coverage by using `socket.socketpair()` plus `asyncio.open_connection()` instead of anonymous `os.pipe()` handles.\r\n- For Python-launched shell snippets and `.sh` hooks, resolve Git-for-Windows Bash with the existing `tools.environments.local._find_bash()` logic and use `--noprofile --norc`; bare `bash` can resolve a WSL stub or leave capture pipes open. Quote test-generated Windows paths and pass forward-slash forms inside Bash scripts.\r\n- **`shlex.split(posix=True)` silently strips backslashes from Windows paths.** Any slash-command \u002F CLI argument parser built on `shlex.split` (Hermes's `run_slash` does this) turns `attach 123 C:\\Users\\...\\file.txt` into the token `C:Users...file.txt`, producing \"no such file\". Path-extraction heuristics that only match `\u002F` or `~\u002F` Unix prefixes (e.g. a terminal-result regex `(?:^|\\s)(\u002F[^\\s'\"]+|\\~\u002F[^\\s'\"]+)`) likewise never catch `C:\\...` drive paths. Fixes: (1) pass **forward-slash** path forms into slash-command strings — Windows `pathlib`\u002F`open()` accept `\u002F` natively — i.e. `run_slash(f\"attach {task_id} {str(src).replace(chr(92), '\u002F')}\")`; or quote the path if the parser honors quotes. (2) Extend Unix-only path regexes with a Windows drive alternative: `[A-Za-z]:[\\\\\u002F][^\\s'\"`]+`. See `references\u002Fwindows-shlex-and-path-extraction.md` for copy-paste snippets and the reproduction recipe.\r\n- `prompt_toolkit` can raise `NoConsoleScreenBufferError` in services and captured tests. Fall back to plain output only for that exception; do not suppress unrelated renderer errors.\r\n- Symlink tests must preserve coverage when creation succeeds and only skip the specific privilege failure (`WinError 1314` from `os.symlink`\u002F`Path.symlink_to` without Developer Mode or admin on Windows), never weakening production path guards. Use a **probe helper**, not a bare `sys.platform == \"win32\"` check — some Windows builds (Developer Mode, admin, CI runners) *can* create symlinks, so a platform-only guard wrongly drops coverage there. The probe tries a real symlink in a throwaway temp dir and returns `False` on `OSError`\u002F`NotImplementedError`:\r\n  ```python\r\n  def _can_symlink() -> bool:\r\n      try:\r\n          with tempfile.TemporaryDirectory() as td:\r\n              (Path(td) \u002F \"real\").mkdir()\r\n              (Path(td) \u002F \"link\").symlink_to(Path(td) \u002F \"real\")\r\n          return True\r\n      except (OSError, NotImplementedError):\r\n          return False\r\n  ```\r\n  Then decorate the test: `@pytest.mark.skipif(not _can_symlink(), reason=\"symlinks not available on this platform\")`. See `references\u002Fsymlink-test-skip-pattern.md` for the full ready-to-paste helper, decorator, and the keep-production-guards pitfall.\r\n- **`pytest-randomly` can manufacture setup\u002Fteardown ERRORs that are not your bug.** On this Windows box the repo's default addopts load `pytest-randomly`, whose reseed hook calls `thinc.util.fix_random_seed` → `numpy.random.seed`, raising `ValueError: Seed must be between 0 and 2**32 - 1` at *setup* and *teardown* of arbitrary tests. Symptom: a run reports e.g. `109 passed ... 13 errors` where every error traceback is inside `pytest_randomly\u002F__init__.py`, never in your code. Do not chase it. Re-run with the plugin disabled to get a clean signal:\r\n  ```bash\r\n  py -3 -m pytest tests\u002F\u003Cfile>.py -q -o addopts= -p no:randomly\r\n  ```\r\n  `-o addopts=` drops repo default flags; `-p no:randomly` is the part that removes the false errors. Read the traceback before concluding the errors are environmental — if the frames are in your module, they are real.\r\n- **Bare `python` on this host is the Microsoft Store stub**: it prints `Python` and exits 0 without running anything, so `python -m pytest ... | tail` silently produces no test output and looks like a pass. Use `py -3` (or the repo venv's `.venv\u002FScripts\u002Fpython.exe`) and confirm the output contains an actual pass\u002Ffail count before reporting success.\r\n- Ambient `.env`\u002FHermes config credentials can make provider fallback tests nondeterministic. Tests for explicit provider selection must exercise partial runtime configuration while ambient credentials exist.\r\n\r\n## Reusable references\r\n\r\n- See `references\u002Fwindows-verification-and-provider-fallbacks.md` for the concrete ACP installation, byte-count reproduction, provider fallback reproduction, and verification commands from a representative Hermes Windows session.\r\n- See `references\u002Fcross-platform-path-test-triage.md` for probes and decision rules covering native Windows paths, MSYS, WSL, file URIs, Termux hints, and platform-neutral fixtures.\r\n- See `references\u002Fwindows-shlex-and-path-extraction.md` for the `shlex.split(posix=True)` backslash-stripping gotcha and the Windows drive-path regex fix (slash-command arg parsing and terminal path extraction).\r\n- See `references\u002Fsymlink-test-skip-pattern.md` for the copy-paste `_can_symlink()` probe helper, skipif decorator, and the Windows `WinError 1314` gotcha (skip the test, keep the production path guard).\r\n- See `references\u002Fstandalone-plugin-module-loading.md` for a copy-paste template that loads any Hermes plugin module standalone on Windows (sys.modules registration, MSYS path fix, venv interpreter, plugin-path discovery).\r\n- See `references\u002Fsemantic-graph-live-smoke-and-commit-bound-evidence.md` for isolated Semantic Graph runtime smoke gates, metadata redaction, bilingual recall, provenance, run-scoped export, correction history, and commit-bound review evidence.\r\n- See `references\u002Fllama-server-hf-live-embedding-probe-windows.md` for Windows llama-server HF resolution, TLS build gates, model-loading lifecycle, embedding endpoint verification, stability interpretation, and public-diff hygiene.\r\n- See `references\u002Fssrf-safe-client-remediation.md` for fixing SSRF review findings in gateway adapters (`create_ssrf_safe_async_client` + `await async_is_safe_url`) and the autouse fixture that keeps the affected tests resolver-free.\r\n\r\n## Commit-bound evidence and runner post-processing\r\n\r\nWhen verification uses a Windows\u002FMSYS canonical runner, bind every claim to an exact commit SHA and working-tree state. A green run on `HEAD + uncommitted changes` is not evidence for `HEAD` alone. If a runner fix is uncommitted, report that boundary, commit the runner fix separately when practical, and rerun the identical canonical commands at the new HEAD before treating the evidence as commit-bound. Keep targeted tests, canonical-runner results, static checks, full-suite results, live integration, CI\u002Freview, merge, and production-readiness claims separate.\r\n\r\nTreat test-worker exit codes and failure counts as authoritative. Duration metadata such as `test_durations.json` is optional scheduling data: normalize its path, create the parent directory, catch filesystem errors, emit a warning with path plus exception type\u002Fmessage, and never let cache persistence override the primary test result. After changing runner post-processing, use `scripts\u002Frun_tests.sh` rather than direct `pytest` alone and record pass\u002Ffail counts, `RUNNER_EXIT`, warnings, interpreter, shell, worker count, and timestamp. Update the implementation log with the final SHA and any failed patch attempt; a hunk mismatch is not a code change unless the working tree confirms one. See `references\u002Fcanonical-runner-commit-bound-evidence.md`, `references\u002Fmsys-doubled-separator-fix.md`, and `references\u002Fsemantic-graph-hardening.md`.\r\n\r\n## Runner Failure Triage\r\n\r\nWhen the canonical per-file runner exits non-zero after test execution, first separate test assertions from runner teardown or aggregation failures. Re-run the same test selection with the project interpreter directly, disabling unrelated pytest plugins or cache providers when the traceback implicates teardown noise. Report the direct pytest result separately from the canonical-runner result; never call a runner-level failure a test pass, and never promote focused green tests to a full-suite claim.\r\n\r\nFor the verified Windows\u002FMSYS worktree case where all tests pass but `_save_durations()` fails while writing the ignored `test_durations.json`, see `references\u002Fsemantic-graph-hardening.md`, `references\u002Fcanonical-runner-post-processing-failures.md`, and `references\u002Ftest-runner-duration-cache-worktree.md`. Treat duration-cache persistence as best-effort: normalize the path, create the parent, catch `OSError`, and preserve the primary test result.\r\n\r\n## Semantic retrieval \u002F embedding verification\r\n\r\nFor incremental Semantic Graph lexical\u002Fdense retrieval work, preserve commit-scoped evidence rather than validating only the final branch. Record the base SHA and clean status before editing; write contract tests first and confirm a meaningful RED failure; keep each logical commit's boundary explicit; run the canonical runner after implementation and again after documentation or metric changes; and finish with lint, compile, diff\u002Fsecret\u002Fpath inspection, HEAD, and clean status.\r\n\r\nReport per-class Recall@k\u002FMRR and latency separately for identifiers, English\u002FJapanese paraphrases, history\u002Fcorrection, and negatives. Distinguish candidate generation from final LLM context injection with `negative_wrong_memory_hit_rate` and `negative_context_injection_rate`. A candidate returned for a negative query is not itself proof that memory was injected.\r\n\r\nFor every hybrid retrieval increment, require zero rejected\u002Fsuperseded leakage in normal mode, zero cross-run leakage, zero secret-bearing recall, and zero retrieval-induced state mutation. Verify embedding-disabled and backend-failure paths preserve the lexical result. Keep targeted, CI, full-suite, live-provider, deployment, and production-readiness claims separate.\r\n\r\nSee `references\u002Fsemantic-retrieval-verification.md` for the reusable evidence checklist and metric definitions.\r\n\r\n## Release-diff adoption on Windows\r\n\r\nWhen a user supplies a semantic adoption plan as an attachment, read the explicitly named file directly even if automatic `@file` context injection warns that it is outside the workspace. Treat the warning as an injection boundary, not proof the file is unreadable. Check for any companion candidate ledger separately; reading the plan does not establish that the ledger was attached. Keep repository writes confined to the approved worktree.\r\n\r\nFor large upstream release comparisons, pin both release commits and the downstream base, run inventory helpers in report-only mode, and distinguish their *candidate classifications* from reviewed behavioral-equivalence decisions. A green focused test on a dirty worktree is evidence for that worktree only, not for its HEAD, complete adoption, release readiness, or merge. Preserve historical provenance and defer version metadata changes until the selected contracts and required gates are verified.\r\n\r\nFor bounded asynchronous discovery, test the peak number of active connects with an event\u002Fbarrier rather than inferring concurrency from elapsed sleep. Exercise the configured limit, explicit unlimited setting, invalid values, and the timeout budget for successive waves; then separately probe failure, cancellation\u002Fre-entry, and profile scope. A timing-free peak assertion should fail when the cap is deliberately bypassed. Keep all these results distinct from the full subsystem and native-Windows suite.\r\n\r\n## Completion criteria\r\n\r\n- The requested package is installed or a precise blocker is reported.\r\n- The reported regression has a focused test that passes, or an investigation-only task has a grounded production-versus-test classification.\r\n- Related subsystem tests pass.\r\n- Static checks pass when files were changed.\r\n- Full-suite status is reported without overstating it.\r\n\r\nFor SQLite-backed Semantic Graph schema evolution and derived-embedding invalidation, see `references\u002Fsemantic-graph-v2-migration-pattern.md`.\r\nFor float32-le embedding vector math, underflow-safe validation, two-stage normalization, model-identity boundaries, and exact cosine search isolation, see `references\u002Fsemantic-graph-embedding-vector-math.md`.\r\n","# Windows Hermes Code Verification\r\n\r\nUse this class-level workflow after modifying or investigating Hermes Python code on a Windows checkout, especially ACP adapters, file operations, provider routing, optional extras, and cross-platform path handling.\r\n\r\n## Goals\r\n\r\n- Reproduce the reported failure with the narrowest test first.\r\n- Distinguish environment\u002Fsetup failures from regressions in edited code.\r\n- Verify Windows-specific semantics such as CRLF\u002FBOM preservation and path handling.\r\n- Separate host-native path interpretation from target-platform path formatting.\r\n- Report focused green tests separately from full-suite status.\r\n\r\n## Workflow\r\n\r\n1. **Inventory first.** Read `AGENTS.md`, inspect `git status`, and identify the project interpreter and dependency declarations. Never treat the start-of-session workspace snapshot as current.\r\n2. **Reproduce narrowly — and confirm it still fails.** Run the exact named test(s) with the project interpreter and capture the full assertion\u002Fstack trace *before* changing code. A task brief that enumerates \"N failing tests\" can be stale relative to the current checkout: run each named test and only patch the ones that genuinely fail. In one session 3 of 6 \"failures\" already passed on the checkout — blind patching of already-green tests wastes effort and risks regressions.\r\n3. **Trace the data flow.** For path failures, inspect values inside Python before blaming MSYS: native Windows `pathlib` and `os.path` can turn POSIX-looking paths into backslash or mixed-separator paths. For byte-count failures, follow the value from caller input through normalization and disk write. For provider failures, follow explicit runtime configuration through fallback order and check for ambient credentials\u002Fconfiguration.\r\n4. **Classify production versus test assumptions.** Unconditional WSL conversion and host-native formatting of promised Linux\u002FTermux strings are production defects. Tests that mock only POSIX `HOME` semantics or hardcode `\u002F` while passing a Windows `Path` are test portability defects.\r\n5. **Check dependency state.** If an optional package is declared in `pyproject.toml` and pinned in `uv.lock`, install that pinned package into the active development venv. Hermes intentionally rejects wheel\u002Fsdist builds of the project itself, so `pip install '.[extra]'` may fail at the project build step; in that case install only the declared package directly and rerun the focused tests.\r\n6. **Make one root-cause fix.** Avoid broad fallback changes or platform-specific test hacks. For target-platform examples or commands, use target-specific formatting (`posixpath`\u002F`PurePosixPath` for Linux, WSL, and Termux) while keeping genuine filesystem probing native. For text writes, preserve the API's established logical payload-size contract independently from physical CRLF\u002FBOM bytes. For provider routing, incomplete explicit configuration must not silently select an unrelated globally configured provider.\r\n7. **Verify in layers.** Run changed-path `py_compile`, `git diff --check`, focused regression tests, and related subsystem tests. For a single test or small set, do **not** use `scripts\u002Frun_tests.sh` — it is too slow for focused verification. Invoke the venv interpreter directly:\r\n   ```bash\r\n   cd '\u002Fc\u002FUsers\u002F\u003Cuser>\u002FDocuments\u002FNew project\u002Fhermes-agent' && \\\r\n     .venv\u002FScripts\u002Fpython.exe -m pytest tests\u002Fplugins\u002F\u003Cfile>::\u003Ctest> -xvs 2>&1 | tail -20\r\n   ```\r\n   Then attempt the standard full runner with a Windows interpreter override only for full-suite status:\r\n   ```bash\r\n   HERMES_PYTHON='\u002Fc\u002FUsers\u002F\u003Cuser>\u002F...\u002F.venv\u002FScripts\u002Fpython.exe' \\\r\n     HERMES_TEST_WORKERS=1 bash scripts\u002Frun_tests.sh\r\n   ```\r\n8. **Report honestly.** Give exact pass counts and commands. State full-suite failures, timeouts, missing optional dependencies, and unrelated Desktop\u002FUI failures separately; focused passing tests do not make the whole repository green.\r\n\r\n## Loading a plugin module standalone (importlib)\r\n\r\nWhen you must invoke a plugin's Python directly from a shell — debugging,\r\ncron, or because the `hermes \u003Cplugin>` CLI is not registered — load its\r\n`core.py` as a module. Four Windows-specific traps block the naive pattern:\r\n\r\n1. **Register the module in `sys.modules` before `exec_module`.** Plugin\r\n   `core.py` usually declares `@dataclass` classes at module top level.\r\n   Loading with `spec_from_file_location(name, path)` + `module_from_spec` +\r\n   `exec_module` *without* first setting `sys.modules[name] = mod` raises\r\n   `AttributeError: 'NoneType' object has no attribute '__dict__'` (the\r\n   dataclass decorator cannot find its own module). Fix: assign to\r\n   `sys.modules` immediately after `module_from_spec`.\r\n2. **MSYS rewrites forward-slash path arguments.** Under Git Bash \u002F MSYS a\r\n   path passed as a Python string like `\u002Fc\u002FUsers\u002Fdownl\u002F...` is silently\r\n   converted by the shell to `C:\\c\\Users\\downl\\...` before Python sees it,\r\n   causing `FileNotFoundError: 'C:\\\\c\u002FUsers\u002F...\u002Fcore.py'`. Fix: prefix the\r\n   command with `export MSYS_NO_PATHCONV=1`, or pass native Windows paths\r\n   (e.g. `%USERPROFILE%\u002F...` — no leading slash — or `C:\\Users\\...`).\r\n3. **Use the venv interpreter, not bare `python`.** On Windows `python` is the\r\n   Microsoft Store stub: it prints `Python` and exits non-zero (49) without\r\n   running your script. Use the Hermes venv interpreter explicitly\r\n   (`\u003Crepo>\u002F.venv\u002FScripts\u002Fpython.exe`) and verify the plugin's deps\r\n   (`twitter_openapi_python`, `tweepy_authlib`, etc.) import there. `py -3`\r\n   works for general scripts but may lack plugin packages.\r\n4. **Put the repo root on `sys.path`.** Plugin `core.py` often imports\r\n   `hermes_constants`; insert the Hermes repo root before loading or imports\r\n   fail even though the plugin file itself is healthy.\r\n\r\nSee `references\u002Fstandalone-plugin-module-loading.md` for a copy-paste template\r\nthat discovers the plugin path (it may be under `~\u002F.hermes\u002Fplugins\u002F\u003Cname>\u002F`,\r\nnot `\u003Crepo>\u002Fplugins\u002F\u003Cname>\u002F`) and applies all four fixes.\r\n\r\n## Windows-specific checks\r\n\r\n- CRLF preservation can make physical file bytes larger than the logical UTF-8 input. Test both the returned API value and actual file contents.\r\n- `Path.as_uri()` and POSIX\u002FMSYS path translation can expose separate ACP resource-link failures. Do not conflate these with dependency installation or provider failures.\r\n- A `file:\u002F\u002F\u002FC:\u002F...` URI should remain a native drive path on Windows; translate it to `\u002Fmnt\u002F\u003Cdrive>\u002F...` only in WSL.\r\n- Python 3.8+ Windows `os.path.expanduser()` uses `USERPROFILE` or `HOMEDRIVE`\u002F`HOMEPATH`, not `HOME`; when a Git Bash\u002FTermux-facing contract explicitly uses `HOME`, expand `~` against that variable before falling back to `expanduser()`.\r\n- Windows asyncio pipe tests may fail with `WinError 6`; retain protocol coverage by using `socket.socketpair()` plus `asyncio.open_connection()` instead of anonymous `os.pipe()` handles.\r\n- For Python-launched shell snippets and `.sh` hooks, resolve Git-for-Windows Bash with the existing `tools.environments.local._find_bash()` logic and use `--noprofile --norc`; bare `bash` can resolve a WSL stub or leave capture pipes open. Quote test-generated Windows paths and pass forward-slash forms inside Bash scripts.\r\n- **`shlex.split(posix=True)` silently strips backslashes from Windows paths.** Any slash-command \u002F CLI argument parser built on `shlex.split` (Hermes's `run_slash` does this) turns `attach 123 C:\\Users\\...\\file.txt` into the token `C:Users...file.txt`, producing \"no such file\". Path-extraction heuristics that only match `\u002F` or `~\u002F` Unix prefixes (e.g. a terminal-result regex `(?:^|\\s)(\u002F[^\\s'\"]+|\\~\u002F[^\\s'\"]+)`) likewise never catch `C:\\...` drive paths. Fixes: (1) pass **forward-slash** path forms into slash-command strings — Windows `pathlib`\u002F`open()` accept `\u002F` natively — i.e. `run_slash(f\"attach {task_id} {str(src).replace(chr(92), '\u002F')}\")`; or quote the path if the parser honors quotes. (2) Extend Unix-only path regexes with a Windows drive alternative: `[A-Za-z]:[\\\\\u002F][^\\s'\"`]+`. See `references\u002Fwindows-shlex-and-path-extraction.md` for copy-paste snippets and the reproduction recipe.\r\n- `prompt_toolkit` can raise `NoConsoleScreenBufferError` in services and captured tests. Fall back to plain output only for that exception; do not suppress unrelated renderer errors.\r\n- Symlink tests must preserve coverage when creation succeeds and only skip the specific privilege failure (`WinError 1314` from `os.symlink`\u002F`Path.symlink_to` without Developer Mode or admin on Windows), never weakening production path guards. Use a **probe helper**, not a bare `sys.platform == \"win32\"` check — some Windows builds (Developer Mode, admin, CI runners) *can* create symlinks, so a platform-only guard wrongly drops coverage there. The probe tries a real symlink in a throwaway temp dir and returns `False` on `OSError`\u002F`NotImplementedError`:\r\n  ```python\r\n  def _can_symlink() -> bool:\r\n      try:\r\n          with tempfile.TemporaryDirectory() as td:\r\n              (Path(td) \u002F \"real\").mkdir()\r\n              (Path(td) \u002F \"link\").symlink_to(Path(td) \u002F \"real\")\r\n          return True\r\n      except (OSError, NotImplementedError):\r\n          return False\r\n  ```\r\n  Then decorate the test: `@pytest.mark.skipif(not _can_symlink(), reason=\"symlinks not available on this platform\")`. See `references\u002Fsymlink-test-skip-pattern.md` for the full ready-to-paste helper, decorator, and the keep-production-guards pitfall.\r\n- **`pytest-randomly` can manufacture setup\u002Fteardown ERRORs that are not your bug.** On this Windows box the repo's default addopts load `pytest-randomly`, whose reseed hook calls `thinc.util.fix_random_seed` → `numpy.random.seed`, raising `ValueError: Seed must be between 0 and 2**32 - 1` at *setup* and *teardown* of arbitrary tests. Symptom: a run reports e.g. `109 passed ... 13 errors` where every error traceback is inside `pytest_randomly\u002F__init__.py`, never in your code. Do not chase it. Re-run with the plugin disabled to get a clean signal:\r\n  ```bash\r\n  py -3 -m pytest tests\u002F\u003Cfile>.py -q -o addopts= -p no:randomly\r\n  ```\r\n  `-o addopts=` drops repo default flags; `-p no:randomly` is the part that removes the false errors. Read the traceback before concluding the errors are environmental — if the frames are in your module, they are real.\r\n- **Bare `python` on this host is the Microsoft Store stub**: it prints `Python` and exits 0 without running anything, so `python -m pytest ... | tail` silently produces no test output and looks like a pass. Use `py -3` (or the repo venv's `.venv\u002FScripts\u002Fpython.exe`) and confirm the output contains an actual pass\u002Ffail count before reporting success.\r\n- Ambient `.env`\u002FHermes config credentials can make provider fallback tests nondeterministic. Tests for explicit provider selection must exercise partial runtime configuration while ambient credentials exist.\r\n\r\n## Reusable references\r\n\r\n- See `references\u002Fwindows-verification-and-provider-fallbacks.md` for the concrete ACP installation, byte-count reproduction, provider fallback reproduction, and verification commands from a representative Hermes Windows session.\r\n- See `references\u002Fcross-platform-path-test-triage.md` for probes and decision rules covering native Windows paths, MSYS, WSL, file URIs, Termux hints, and platform-neutral fixtures.\r\n- See `references\u002Fwindows-shlex-and-path-extraction.md` for the `shlex.split(posix=True)` backslash-stripping gotcha and the Windows drive-path regex fix (slash-command arg parsing and terminal path extraction).\r\n- See `references\u002Fsymlink-test-skip-pattern.md` for the copy-paste `_can_symlink()` probe helper, skipif decorator, and the Windows `WinError 1314` gotcha (skip the test, keep the production path guard).\r\n- See `references\u002Fstandalone-plugin-module-loading.md` for a copy-paste template that loads any Hermes plugin module standalone on Windows (sys.modules registration, MSYS path fix, venv interpreter, plugin-path discovery).\r\n- See `references\u002Fsemantic-graph-live-smoke-and-commit-bound-evidence.md` for isolated Semantic Graph runtime smoke gates, metadata redaction, bilingual recall, provenance, run-scoped export, correction history, and commit-bound review evidence.\r\n- See `references\u002Fllama-server-hf-live-embedding-probe-windows.md` for Windows llama-server HF resolution, TLS build gates, model-loading lifecycle, embedding endpoint verification, stability interpretation, and public-diff hygiene.\r\n- See `references\u002Fssrf-safe-client-remediation.md` for fixing SSRF review findings in gateway adapters (`create_ssrf_safe_async_client` + `await async_is_safe_url`) and the autouse fixture that keeps the affected tests resolver-free.\r\n\r\n## Commit-bound evidence and runner post-processing\r\n\r\nWhen verification uses a Windows\u002FMSYS canonical runner, bind every claim to an exact commit SHA and working-tree state. A green run on `HEAD + uncommitted changes` is not evidence for `HEAD` alone. If a runner fix is uncommitted, report that boundary, commit the runner fix separately when practical, and rerun the identical canonical commands at the new HEAD before treating the evidence as commit-bound. Keep targeted tests, canonical-runner results, static checks, full-suite results, live integration, CI\u002Freview, merge, and production-readiness claims separate.\r\n\r\nTreat test-worker exit codes and failure counts as authoritative. Duration metadata such as `test_durations.json` is optional scheduling data: normalize its path, create the parent directory, catch filesystem errors, emit a warning with path plus exception type\u002Fmessage, and never let cache persistence override the primary test result. After changing runner post-processing, use `scripts\u002Frun_tests.sh` rather than direct `pytest` alone and record pass\u002Ffail counts, `RUNNER_EXIT`, warnings, interpreter, shell, worker count, and timestamp. Update the implementation log with the final SHA and any failed patch attempt; a hunk mismatch is not a code change unless the working tree confirms one. See `references\u002Fcanonical-runner-commit-bound-evidence.md`, `references\u002Fmsys-doubled-separator-fix.md`, and `references\u002Fsemantic-graph-hardening.md`.\r\n\r\n## Runner Failure Triage\r\n\r\nWhen the canonical per-file runner exits non-zero after test execution, first separate test assertions from runner teardown or aggregation failures. Re-run the same test selection with the project interpreter directly, disabling unrelated pytest plugins or cache providers when the traceback implicates teardown noise. Report the direct pytest result separately from the canonical-runner result; never call a runner-level failure a test pass, and never promote focused green tests to a full-suite claim.\r\n\r\nFor the verified Windows\u002FMSYS worktree case where all tests pass but `_save_durations()` fails while writing the ignored `test_durations.json`, see `references\u002Fsemantic-graph-hardening.md`, `references\u002Fcanonical-runner-post-processing-failures.md`, and `references\u002Ftest-runner-duration-cache-worktree.md`. Treat duration-cache persistence as best-effort: normalize the path, create the parent, catch `OSError`, and preserve the primary test result.\r\n\r\n## Semantic retrieval \u002F embedding verification\r\n\r\nFor incremental Semantic Graph lexical\u002Fdense retrieval work, preserve commit-scoped evidence rather than validating only the final branch. Record the base SHA and clean status before editing; write contract tests first and confirm a meaningful RED failure; keep each logical commit's boundary explicit; run the canonical runner after implementation and again after documentation or metric changes; and finish with lint, compile, diff\u002Fsecret\u002Fpath inspection, HEAD, and clean status.\r\n\r\nReport per-class Recall@k\u002FMRR and latency separately for identifiers, English\u002FJapanese paraphrases, history\u002Fcorrection, and negatives. Distinguish candidate generation from final LLM context injection with `negative_wrong_memory_hit_rate` and `negative_context_injection_rate`. A candidate returned for a negative query is not itself proof that memory was injected.\r\n\r\nFor every hybrid retrieval increment, require zero rejected\u002Fsuperseded leakage in normal mode, zero cross-run leakage, zero secret-bearing recall, and zero retrieval-induced state mutation. Verify embedding-disabled and backend-failure paths preserve the lexical result. Keep targeted, CI, full-suite, live-provider, deployment, and production-readiness claims separate.\r\n\r\nSee `references\u002Fsemantic-retrieval-verification.md` for the reusable evidence checklist and metric definitions.\r\n\r\n## Release-diff adoption on Windows\r\n\r\nWhen a user supplies a semantic adoption plan as an attachment, read the explicitly named file directly even if automatic `@file` context injection warns that it is outside the workspace. Treat the warning as an injection boundary, not proof the file is unreadable. Check for any companion candidate ledger separately; reading the plan does not establish that the ledger was attached. Keep repository writes confined to the approved worktree.\r\n\r\nFor large upstream release comparisons, pin both release commits and the downstream base, run inventory helpers in report-only mode, and distinguish their *candidate classifications* from reviewed behavioral-equivalence decisions. A green focused test on a dirty worktree is evidence for that worktree only, not for its HEAD, complete adoption, release readiness, or merge. Preserve historical provenance and defer version metadata changes until the selected contracts and required gates are verified.\r\n\r\nFor bounded asynchronous discovery, test the peak number of active connects with an event\u002Fbarrier rather than inferring concurrency from elapsed sleep. Exercise the configured limit, explicit unlimited setting, invalid values, and the timeout budget for successive waves; then separately probe failure, cancellation\u002Fre-entry, and profile scope. A timing-free peak assertion should fail when the cap is deliberately bypassed. Keep all these results distinct from the full subsystem and native-Windows suite.\r\n\r\n## Completion criteria\r\n\r\n- The requested package is installed or a precise blocker is reported.\r\n- The reported regression has a focused test that passes, or an investigation-only task has a grounded production-versus-test classification.\r\n- Related subsystem tests pass.\r\n- Static checks pass when files were changed.\r\n- Full-suite status is reported without overstating it.\r\n\r\nFor SQLite-backed Semantic Graph schema evolution and derived-embedding invalidation, see `references\u002Fsemantic-graph-v2-migration-pattern.md`.\r\nFor float32-le embedding vector math, underflow-safe validation, two-stage normalization, model-identity boundaries, and exact cosine search isolation, see `references\u002Fsemantic-graph-embedding-vector-math.md`.\r\n",{"name":5,"author":44,"license":15,"version":45,"metadata":46,"platforms":55,"description":7},"Hermes Agent","1.1.0",{"hermes":47},{"tags":48,"related_skills":51},[20,28,22,36,23,49,50],"providers","file-operations",[52,53,54],"systematic-debugging","requesting-code-review","test-driven-development",[20],"main","0d1434f89f4bc6b07e9d272accd8c1013768820f","archive\u002Fskill-md-reviewed\u002Fsha256\u002F3e\u002F3e867443e79d232b9fd488c5338d5c9832d77a95bea920c8d9cd45593566e27b",0,"https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills","https:\u002F\u002Fgithub.com\u002Fzapabob","The Open University of JAPAN　2019-now\r\n\r\nTokyo University of Science　2007-2010","2026-10-26 16:29:01",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add zapabob\u002FSkills --skill windows-hermes-code-verification",{"tool":70,"command":71},"bunx","bunx skills add zapabob\u002FSkills --skill windows-hermes-code-verification",{"tool":73,"command":74},"pnpm","pnpm dlx skills add zapabob\u002FSkills --skill windows-hermes-code-verification","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Farchive\u002Fskill-md-reviewed\u002Fsha256\u002F3e\u002F3e867443e79d232b9fd488c5338d5c9832d77a95bea920c8d9cd45593566e27b\u002FSKILL.md",true,[],[79,101,120,144,168,184],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":39},"01M6GJTE1GESGGF9K028Y7753E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fxurl\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[],[81,86,87,88,89,90,20,91,92,93,94,95,96,23,30,97,56,98,99,100],"openclaw","macos","cli","github","linux","official","search","https","social-media","api","Media","twitter","social","via","post",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":39},"01M6GJT8S1PXQ8WPXT1HSNBWH2","writing-plans","Write implementation plans: bite-sized tasks, paths, code.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwriting-plans\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[],[108,109,110,111,87,32,90,112,20,113,114,35,21,115,34,116,117,118,119,54],"writing","writing plans","plans","design","workflow","documentation","tasks","planning","subagent","write","superpowers","paths",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":39},"01M6GJST0H5X7WHBJ3BZK0DVKH","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwhisper\u002Fvariants\u002Fhermes-agent-optional\u002FSKILL.md",[],[122,87,90,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143],"openai","speech","multimodal","Transformers","ASR","Audio","text","model","speech recognition","use","general","multilingual","translation","english","identification","processing","Audio Processing",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":39},"01M6GJSMRQ8EETZTYMG72P70EA","weights-and-biases","W&B: log ML experiments, sweeps, model registry, dashboards.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fweights-and-biases\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[],[151,87,152,153,20,154,155,156,157,158,159,134,160,161,162,163,164,165,166,167],"weights and biases","tensorflow","experiments","pytorch","visualization","registry","real-time","tuning","dashboards","experiment","log","time","Experiment Tracking","Model Registry","Hyperparameter Tuning","WandB","Real-Time Visualization",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":39},"01M6GJS19KDPRY112JTR326S06","watchers","Poll RSS, JSON APIs, and GitHub with watermark dedup.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwatchers\u002Fvariants\u002Fhermes-agent-optional\u002FSKILL.md",[],[170,87,175,89,90,176,177,178,179,180,181,23,30,182,183],"terminal","automation","http","monitoring","cron","json","rss","devops","with",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":39},"01M6GJRHJD2A6Q830SWF9W48BC","serving-llms-vllm","vLLM: high-throughput LLM serving, OpenAI API, quantization.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fvllm\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[],[191,192,193,90,194,127,195,196,197,130,198,95,199,200,201,202,203,204,205,206],"llms","vLLM","serving llms vllm","research","openai api","tensor","Inference Serving","Production","llm serving","High Throughput","PagedAttention","Continuous Batching","Quantization","Tensor Parallelism","high-throughput","throughput"]