Hermes Agent context engine: the main model writes the compaction handoff on its cached prompt prefix
Run main-push CI without manual approval
Elevatormusic5202400bca44
diff --git a/.github/workflows/hermes-compatibility.yml b/.github/workflows/hermes-compatibility.ymlindex 57af0e5..63db863 100644--- a/.github/workflows/hermes-compatibility.yml+++ b/.github/workflows/hermes-compatibility.yml@@ -22,7 +22,7 @@ concurrency:jobs:contract:name: Hermes contract (${{ matrix.hermes }})- environment: ci-approval+ environment: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'ci-main' || 'ci-approval' }}runs-on: ubuntu-latesttimeout-minutes: 30strategy:diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex 62d4dba..b56a02e 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -14,7 +14,7 @@ concurrency:jobs:ruff:- environment: ci-approval+ environment: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'ci-main' || 'ci-approval' }}runs-on: ubuntu-latesttimeout-minutes: 10steps:diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 9af578d..65b686b 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -15,7 +15,7 @@ concurrency:jobs:issue-policy:name: Issue policy unit tests- environment: ci-approval+ environment: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'ci-main' || 'ci-approval' }}runs-on: ubuntu-latesttimeout-minutes: 5steps:@@ -30,7 +30,7 @@ jobs:unit:name: unit (${{ matrix.os }}, ${{ matrix.python-version }})- environment: ci-approval+ environment: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'ci-main' || 'ci-approval' }}runs-on: ${{ matrix.os }}timeout-minutes: 15strategy:diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3c09a57..2d67f63 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,6 +6,7 @@ All notable changes are listed here. The format follows [Keep a Changelog](https### Changed+- Run CI checks automatically for pushes to `main` through the approval-free `ci-main` environment, which allows only the branch named `main`. Keep approval through `ci-approval` for pull requests, scheduled runs, and manual dispatch. Local checks still need an explicit request.- Remove the fixed summary without a model. If the warm request and model-based fallback cannot produce a usable summary, stop the current compaction pass, preserve its input history, and report safe error codes. Hermes can retry an automatic failure; the plugin does not stop the entire host turn. This includes incomplete or oversized fallback replies and a retained-history layout that cannot fit safely.- Keep the fallback on `auxiliary.warm_compaction`; `auto` follows the main chat route. This task stays separate from the built-in compressor's `auxiliary.compression` task.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 6faafc7..01debae 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -92,15 +92,24 @@ You need Python 3.10 or later and Git. The plugin has no third-party dependency.Every PR must pass the full suite: unit tests, property tests, issue policy tests, and all four loopback Hermes checks below. Run lint too. This rule includes document and form changes. These checks use synthetic data. They do not prove deployed compatibility, summary quality, or cache reuse. No live model or performance test is required for this suite.-### Manual approval for each run+### Approval for check runs-Code tests and lint need a manual maintainer or reviewer action for each run.+Local code tests and lint need a manual maintainer or reviewer action for each run.Do not start or repeat them automatically after a change, review, or failure.An agent must wait for an explicit request to run local checks. CI uses theprotected `ci-approval` environment for policy unit tests, unit and property-tests, Ruff, syntax checks, and all Hermes suites.--The repository owner must create `ci-approval` before these workflows are enabled.+tests, Ruff, syntax checks, and all Hermes suites, except for pushes to `main`.++A `push` event on `refs/heads/main` selects the approval-free `ci-main` environment+and runs these checks automatically. All other events select `ci-approval`.+Pull requests, scheduled runs, and manual dispatch still need approval, including+scheduled runs and manual dispatch on `main`.++The repository owner must create both environments before these workflows are enabled.+Create `ci-main` with no required reviewers, wait timer, secrets, or variables.+For its deployment branch policy, select **Selected branches and tags**. Add one+branch rule for the exact name `main`. Add no tag rules.+For `ci-approval`, use these settings:Set `Elevatormusic` as its required reviewer. Allow self-review so this reviewercan approve runs on their own PRs. Disable administrator bypass. Allow all branchand tag refs so fork and same-repository PR merge refs can reach the gate. Add no@@ -108,14 +117,14 @@ environment secrets or variables. GitHub creates an unprotected environment ifa workflow names one that does not exist; the workflow name alone does not enableapproval. See [GitHub environment setup](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments).-PR, push, scheduled, and manual events create waiting jobs. For each run, the+Events that select `ci-approval` create waiting jobs. For each such run, thereviewer checks its exact commit, opens **Review deployments**, selects`ci-approval`, and selects **Approve and deploy**. These jobs run checks only.Reject a run that must not execute. A new commit or rerun needs a new approval;an earlier approval or PR label does not approve it. See [GitHub review steps](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/review-deployments).The `issue-first` metadata check stays automatic. It reads trusted policy code-and PR metadata. The test aggregate waits for the approved test jobs. Required+and PR metadata. The test aggregate waits for all test jobs. Requiredcheck names and the rule to pass every check for the current PR commit stay in place.The full suite can run in CI. Link all passing test jobs for the current PR commit, including the Hermes checks, before marking the test checkbox. A running, failed, skipped, or unavailable job is not a passing result. The local commands below provide the same checks when you run them outside CI. You do not need to download a Hermes runtime only to repeat a complete passing CI suite.