The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(ci): prompt-surface changes need one core approval, not two
Tekniumc152ba5a82d7
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERSindex 6879afa1f5d..eef164f97cc 100644--- a/.github/CODEOWNERS+++ b/.github/CODEOWNERS@@ -16,7 +16,7 @@/scripts/code_health/ @NousResearch/hermes-agent-core# The committed system prompt + tools[] render every session sends (scripts/ci/prompt_surface.py).-# The dep-version-gate ruleset raises this path to TWO core approvals; this line requests them.+# The prompt-surface-review ruleset requires one hermes-agent-core approval here; this line requests it./tests/fixtures/prompt_surface/ @NousResearch/hermes-agent-core# eslint configs can define custom ``fix`` functions that run arbitrary code.diff --git a/.github/workflows/prompt-surface-diff.yml b/.github/workflows/prompt-surface-diff.ymlindex 5f81147f653..6f80bdf25ba 100644--- a/.github/workflows/prompt-surface-diff.yml+++ b/.github/workflows/prompt-surface-diff.yml@@ -9,7 +9,7 @@ name: Prompt surface diff# change that alters the surface must carry the regenerated snapshot in the same PR;# * this job summarises the snapshot's base->head diff (per-surface token deltas, prompt hunks,# per-tool description/param changes) into the unified CI review comment;-# * the protect-main ruleset requires two hermes-agent-core approvals for that directory.+# * the prompt-surface-review ruleset requires one hermes-agent-core approval for that directory.## Never blocking: the staleness test is the gate and the ruleset is the review requirement.# Reads only the two committed snapshots (no PR code runs), so it needs no secrets.@@ -87,7 +87,7 @@ jobs:"summary": "This PR changes the system prompt or tool schemas every session sends.","detail": detail,"how_to_fix": "Read the rendered change below (full text under tests/fixtures/prompt_surface/ "- "in the Files tab). Merging needs two hermes-agent-core approvals.",+ "in the Files tab). Merging needs a hermes-agent-core approval.",}]}]print("review_status=" + json.dumps(status))PYdiff --git a/scripts/ci/prompt_surface.py b/scripts/ci/prompt_surface.pyindex 1eac7440cf2..92e9b432472 100644--- a/scripts/ci/prompt_surface.py+++ b/scripts/ci/prompt_surface.py@@ -10,7 +10,7 @@ both through the production code into ``tests/fixtures/prompt_surface/``, which* ``tests/ci/test_prompt_surface.py`` fails when the committed render is stale, so every changeto the surface lands as a reviewable diff of real prompt text and tool schemas;* ``.github/workflows/prompt-surface-diff.yml`` posts the per-surface summary on the PR;-* a repository ruleset requires two hermes-agent-core approvals for that directory.+* a repository ruleset requires a hermes-agent-core approval for that directory.python scripts/ci/prompt_surface.py render # regenerate the committed snapshotpython scripts/ci/prompt_surface.py diff BASE HEAD --output FILE # Markdown summarydiff --git a/tests/ci/test_prompt_surface.py b/tests/ci/test_prompt_surface.pyindex ebd629c17c1..4e597ed8dcf 100644--- a/tests/ci/test_prompt_surface.py+++ b/tests/ci/test_prompt_surface.py@@ -3,7 +3,7 @@``tests/fixtures/prompt_surface/`` holds the system prompt and ``tools[]`` array a stock installsends on each surface (see ``scripts/ci/prompt_surface.py``). A code change that alters eithermust carry the regenerated snapshot, so the change shows up in review as real prompt text and-real schemas, and the snapshot path needs two hermes-agent-core approvals to merge.+real schemas, and the snapshot path needs a hermes-agent-core approval to merge.Regenerate with ``scripts/run-in-hermes-env python scripts/ci/prompt_surface.py render``."""@@ -38,7 +38,7 @@ def test_committed_prompt_surface_is_current(tmp_path):differences = _tree_differences(prompt_surface.SNAPSHOT, rendered)assert not differences, ("The system prompt or tool schemas changed. Regenerate the snapshot and commit it with the "- "change (merging it needs two hermes-agent-core approvals):\n"+ "change (merging it needs a hermes-agent-core approval):\n"" scripts/run-in-hermes-env python scripts/ci/prompt_surface.py render\n"+ "\n".join(differences[:20]))diff --git a/website/docs/developer-guide/contributing.md b/website/docs/developer-guide/contributing.mdindex 5b91ed3469d..1704cbc1fe7 100644--- a/website/docs/developer-guide/contributing.md+++ b/website/docs/developer-guide/contributing.md@@ -351,7 +351,7 @@ refactor/description # Code restructuring2. **Test manually**: Run `hermes` and exercise the code path you changed3. **Check cross-platform impact**: Consider macOS, Linux, WSL2, and native Windows. If you touch file I/O, process management, terminal handling, subprocesses, or signals, run `scripts/check-windows-footguns.py`.4. **Keep PRs focused**: One logical change per PR-5. **Prompt or tool-schema changes**: if `tests/ci/test_prompt_surface.py` fails, your change alters the system prompt or a tool schema that every session sends. Regenerate with `scripts/run-in-hermes-env python scripts/ci/prompt_surface.py render` and commit the snapshot. Changes there need two maintainer approvals (see [Prompt Assembly](./prompt-assembly.md#reviewing-changes-to-the-prompt-surface)).+5. **Prompt or tool-schema changes**: if `tests/ci/test_prompt_surface.py` fails, your change alters the system prompt or a tool schema that every session sends. Regenerate with `scripts/run-in-hermes-env python scripts/ci/prompt_surface.py render` and commit the snapshot. Changes there need a maintainer approval (see [Prompt Assembly](./prompt-assembly.md#reviewing-changes-to-the-prompt-surface)).### PR Descriptiondiff --git a/website/docs/developer-guide/prompt-assembly.md b/website/docs/developer-guide/prompt-assembly.mdindex 18e2cd6e96e..f51608d4bbb 100644--- a/website/docs/developer-guide/prompt-assembly.md+++ b/website/docs/developer-guide/prompt-assembly.md@@ -333,7 +333,7 @@ The **prompt surface** is what a stock install sends before the first user messa- `scripts/ci/prompt_surface.py render` builds the surface through the production assembly code (`build_system_prompt_parts` and the agent's own `tools[]`) and writes it to `tests/fixtures/prompt_surface/`. It renders nine surfaces: `cli` with four model families (the model name gates guidance and the patch dialect), `cli` inside a code workspace, `desktop`, `telegram`, `discord` and `cron`. The render uses a fresh home. The clock, host OS, network, tool availability and machine paths are pinned, so a laptop and CI produce the same bytes. Every registered tool counts as available, so credential-gated schemas get reviewed too.- `tests/ci/test_prompt_surface.py` fails when the committed snapshot is stale. A PR that changes the surface carries the regenerated snapshot, and reviewers read the real prompt text and schemas in the Files tab.- The **Prompt surface diff** CI job posts a per-surface summary to the PR review comment: token deltas, prompt hunks, and added or removed tools and parameters.-- Changes under `tests/fixtures/prompt_surface/` need **two approvals from hermes-agent-core** before they can merge.+- Changes under `tests/fixtures/prompt_surface/` need **an approval from hermes-agent-core** before they can merge.Regenerate after any change that moves the surface: